aboutsummaryrefslogtreecommitdiffhomepage
path: root/samples/aoc/2022/01/solve.bruijn
blob: 7764db898b4181da979fd34a2d8182d68b3be425 (plain) (blame)
1
2
3
4
5
6
7
:import std/Math .
:import std/String .

main [lmax sums]
	numbers number! <$> (lines 0)
	parts split-at =?‣ numbers
	sums sum <$> parts