Comment on What could go wrong trying to solve AoC in Rust?
GeniusIsme@lemmy.world 9 months ago
Show the alternative, I’ll have a good laugh.
Comment on What could go wrong trying to solve AoC in Rust?
GeniusIsme@lemmy.world 9 months ago
Show the alternative, I’ll have a good laugh.
janAkali@lemmy.one 8 months ago
It’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 8 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.