|
@@ -40,7 +40,7 @@ actor Main
|
|
|
with file = OpenFile(FilePath(env.root as AmbientAuth, "input.txt", caps)?) as File
|
|
|
do
|
|
|
// iterate through the lines of the file
|
|
|
- let sum = Iter[String iso^](file.lines())
|
|
|
+ let sum = Iter[String](file.lines())
|
|
|
// try to parse all the lines as a number
|
|
|
.filter_map[U64]({(str) => try str.u64()? else None end})
|
|
|
// calculate the amount of fuel required for each one
|