signal-2024-02-01-19-47-41-855

you are viewing a single comment's thread
view the rest of the comments
[–] 2 points 2 years ago (1 child)

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

  • source
  • hideshow 2 child comments
  • [–] 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

  • source
  • parent
  • hideshow 2 child comments