repo.or.cz
/
aoc_eblake.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
day 1 more robust
[aoc_eblake.git]
/
2022
/
day01.golfm4
blob
3c77c33f8ce639193d130b893f3bf15fcfe82dc1
1
define(m,`ifelse(eval($1>$2+0),1,``$*'',``$2,'m($1,$3,$4)')')define(_,
2
`ifelse($2,,`o(eval,$1',$3,,`_(m($2,$1)',`_(`$1',$3+$2'),shift(shift(shift(
3
$@))))')_(,translit(include(i),define(o,$1($2) $1($2+$3+$4))
4
,`,'))