Quick actions

cmd+k|ctrl+k

Navigation

Languages

AoC 2022, day 1

Snippet info

Language

Raku

Visibility

public

Author

seaker

Created

2022-12-03T14:36:49.527458Z

Updated

2022-12-13T04:42:47.276378Z

my @a = $*IN.split("\n\n")».words».sum.sort;
put 'part 1: ', @a.tail(1);
put 'part 2: ', @a.tail(3).sum;
INFO