about summary refs log tree commit diff stats
path: root/rnd
diff options
context:
space:
mode:
Diffstat (limited to 'rnd')
-rw-r--r--rnd/aoc01_partial.apl8
1 files changed, 8 insertions, 0 deletions
diff --git a/rnd/aoc01_partial.apl b/rnd/aoc01_partial.apl
new file mode 100644
index 0000000..895a6ba
--- /dev/null
+++ b/rnd/aoc01_partial.apl
@@ -0,0 +1,8 @@
+⍝ look, I told myself I *wouldn't* do AoC 2022,
+⍝ but work slack was too goddamned inticing, so
+⍝ I'm not *really* doing it, but maybe some notes?
+⍝ this is the 2nd part for day 1 -- this sorts a
+⍝ vector in descending order and sums the 1st 3 results
+
+  vec ← 40 60 20 110 70 60 40 90 60 80
+  +/vec[3↑⍒vec]