▲ 65 ▼ What could go wrong trying to solve AoC in Rust? (sh.itjust.works) submitted 2 years ago* by MaliciousKebab@sh.itjust.works to c/programmer_humor@programming.dev 17 comments fedilink hide all child comments
[–] GeniusIsme@lemmy.world 2 points 2 years ago (1 child) Show the alternative, I'll have a good laugh. permalink fedilink source hideshow 2 child comments replies: [–] janAkali@lemmy.one 2 points 2 years ago* (last edited 2 years ago) (1 child) 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.nim permalink fedilink source parent hideshow 2 child comments replies: [–] GeniusIsme@lemmy.world 1 point 2 years 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. permalink fedilink source parent
[–] janAkali@lemmy.one 2 points 2 years ago* (last edited 2 years ago) (1 child) 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.nim permalink fedilink source parent hideshow 2 child comments replies: [–] GeniusIsme@lemmy.world 1 point 2 years 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. permalink fedilink source parent
[–] GeniusIsme@lemmy.world 1 point 2 years 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. permalink fedilink source parent