You're viewing a single thread.
View all comments
17
comments
Show the alternative, I'll have a good laugh.
2 0 ReplyIt's Nim, but I have no idea why you can't do this in Rust:
var seeds = lines[0].split(": ")[1].splitWhitespace().mapIt(it.parseInt)
Full solution: https://codeberg.org/Archargelod/aoc23-nim/src/branch/master/day_05/solution.nim
2 0 ReplyAhh, 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.
1 0 Reply
You've viewed 17 comments.
Scroll to top