aboutsummaryrefslogtreecommitdiffhomepage
path: root/samples/aoc/2023/01/solve.bruijn
blob: 2ed5c5fff49ec743907a64635c73a2066d858aa1 (plain) (blame)
1
2
3
4
5
6
7
8
:import std/Combinator .
:import std/String .
:import std/Math .
:import std/Char .

part1 (filter numeric?) → [^0 : {}(_0)] → string→number

main [∑(part1 <$> (lines 0))]