I've been saying I'll do advent of code in nickel this year. We'll see if I actually manage all the days.
Anyway, day1 is a gimme:
https://github.com/euank/advent-of-nickel-2022/blob/a78077f5/day01/default.ncl
Learnings so far:
1. Using the nickel in nixpkgs gave me an 'array.sort' that did not in fact sort arrays. nickel built from master solved that
2. sorting ~240 numbers takes nickel 2s (>100s before updating)... this does not bode well for nickel being able to do the later numerical problems.
I'll try to actually use some types and contracts for later ones. I haven't written any nickel at all before. This is an excuse to learn nickel. I should try and make myself learn the actually interesting features of nickel