Uiua
Decided to try and use Uiua for each day this year. At least I'm not the only one to get this idea ^^
Run with example input here
PartOne โ (
&rs โ &fo "input-1.txt"
โ(โโโ @ .)โ @\n.
โกโโ
โต/-
/+
)
PartTwo โ (
&rs โ &fo "input-1.txt"
โ(โโโ @ .)โ @\n.
โขโโฃโ
0
โข(+โ(:โ(รโงปโโกโ)โ1โโข)|โ
(โ 0โงป))
โ(โโ) # just cleaning up the stack
)
&p "Day 1:"
&pf "Part 1: "
&p PartOne
&pf "Part 2: "
&p PartTwo