Comment on What could go wrong trying to solve AoC in Rust?
janAkali@lemmy.one 9 months agoIt’s Nim, but I really doubt you can’t do this in Rust:
var seeds = lines[0].split(":")[1].splitWhitespace().mapIt(it.parseInt)
Full solution: codeberg.org/Archargelod/…/solution.nim
GeniusIsme@lemmy.world 9 months ago
Ahh, it is the same thing. Rust example surely has some cruft, but mostly for the better. I’m sure not all of it is needed.