diff options
Diffstat (limited to 'day01.mew')
-rw-r--r-- | day01.mew | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/day01.mew b/day01.mew new file mode 100644 index 0000000..4dffbfa --- /dev/null +++ b/day01.mew @@ -0,0 +1,9 @@ +(op=> (lines "day01") + (gmap string->number _) + (gsplit-on not _) + (gmap (inject +) _) + (into #() _) + (sort! _ >) + ,(juxt (fun=> (get _ 0)) + (fun=> gen (gtake _ 3) ,(inject +))) + prn) |