You must log in or register to comment.
You can’t really blame that on rust.
Yeah ngl it’s very ugly. But hey as long as it works it’s not stupid amirite?
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.nim