Advent of Code solutions

fix a typo

+3 -1
+1 -1
2022/12/p1.hs
··· 79 79 list = concat input 80 80 width = (length list) `div` height 81 81 startIndex = fromJust $ elemIndex 'S' list 82 - endIndex = fromJust, nub $ elemIndex 'E' list 82 + endIndex = fromJust $ elemIndex 'E' list 83 83 84 84 main :: IO () 85 85 main = do
+2
Justfile
··· 24 24 time swipl -s "$fn" -g main,halt < {{input}} 25 25 else if test -f {{part}}.py 26 26 time python3 "$fn" < {{input}} 27 + else if test -f {{part}}.rb 28 + time ruby "$fn" < {{input}} 27 29 else if test -f {{part}}.c 28 30 gcc "$fn" -o {{part}} > /dev/null 29 31 and time ./{{part}} < {{input}}