What could go wrong trying to solve AoC in Rust?MaliciousKebab@sh.itjust.works to Programmer Humor@programming.dev – 65 points – 10 months ago17Post a CommentPreviewYou are viewing a single commentView all commentsShow the alternative, I'll have a good laugh. It'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.nimAhh, 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.
Show the alternative, I'll have a good laugh. It'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.nimAhh, 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.
It'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.nimAhh, 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.
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.
Show the alternative, I'll have a good laugh.
It's Nim, but I have no idea why you can't do this in Rust:
Full solution: https://codeberg.org/Archargelod/aoc23-nim/src/branch/master/day_05/solution.nim
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.