summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormhsn <mail@mhsn.net>2025-09-24 16:41:04 +0100
committermhsn <mail@mhsn.net>2025-09-24 16:41:04 +0100
commit885bc90d8bf30fcdebba4ee638ee8d0dd51c99de (patch)
tree7d789c9c2280a185e223c45f3aa13276b4102629
parentdb34fd026b539b11bbcd4492bf275c80e3d392ab (diff)
downloadaoc-885bc90d8bf30fcdebba4ee638ee8d0dd51c99de.tar.gz
aoc-885bc90d8bf30fcdebba4ee638ee8d0dd51c99de.zip
24-04-raku both
-rwxr-xr-x2024/04/raku.raku8
1 files changed, 8 insertions, 0 deletions
diff --git a/2024/04/raku.raku b/2024/04/raku.raku
new file mode 100755
index 0000000..6055fe4
--- /dev/null
+++ b/2024/04/raku.raku
@@ -0,0 +1,8 @@
+#!/usr/bin/env raku
+
+my @g = lines.map: *.comb.Array;
+
+@g.map: *.say;
+say "---";
+
+say @g[.[0]; .[1] .. .[1]+3] for (^@g X ^@g[0])[^4];