Ivy remains a good choice for
[#]AdventOfCode.
Day 1:
sample = transp read "sample.txt"
op sort x = x[up x]
op solve x = +/abs (sort x[1]) - sort x[2]
solve sample
op solve2 x = +/x[1] * +/x[1] o.== x[2]
solve2 sample
https://adventofcode.com
(Ivy in 2021: https://www.youtube.com/playlist?list=PLrwpzH1_9ufMLOB6BAdzO08Qx-9jHGfGg)
=> More informations about this toot | View the thread | More toots from rsc@hachyderm.io
=> View adventofcode tag This content has been proxied by September (3851b).Proxy Information
text/gemini