What could go wrong trying to solve AoC in Rust?

https://sh.itjust.works/post/13879509

What could go wrong trying to solve AoC in Rust? - sh.itjust.works

signal-2024-02-01-19-47-41-855 [https://sh.itjust.works/pictrs/image/2ec88868-b621-47a5-9247-b2eb30ff0c6a.jpeg]

Show the alternative, I’ll have a good laugh.

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

aoc23-nim/day_05/solution.nim at master

aoc23-nim - Advent of Code 2023 in Nim 👑

Codeberg.org
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.