about summary refs log tree commit diff stats
path: root/rnd
diff options
context:
space:
mode:
authorelioat <elioat@tilde.institute>2022-12-01 11:50:25 -0500
committerelioat <elioat@tilde.institute>2022-12-01 11:50:25 -0500
commit1dbcd48798d5e458ca97ce09800841723917a1e2 (patch)
tree9ad407f1aaa1202205720642659ac3817864b99a /rnd
parentf63591010b418062d2f7af07a442d2e3da5b7dce (diff)
downloaddecember-2022-1dbcd48798d5e458ca97ce09800841723917a1e2.tar.gz
random APL notes
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]