about summary refs log tree commit diff
path: root/day01.mew
blob: 4dffbfa589846f1df07f7b213aa271c0e8f20ec8 (plain) (blame)
1
2
3
4
5
6
7
8
9
(op=> (lines "day01")
      (gmap string->number _)
      (gsplit-on not _)
      (gmap (inject +) _)
      (into #() _)
      (sort! _ >)
      ,(juxt (fun=> (get _ 0))
             (fun=> gen (gtake _ 3) ,(inject +)))
      prn)