chiark
/
gitweb
/
~bjharris
/
aoc-2022.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
47aabae
)
13a working on the example but probably subtly wrong
author
Ben Harris
<bjh21@bjh21.me.uk>
Mon, 13 May 2024 19:43:28 +0000
(20:43 +0100)
committer
Ben Harris
<bjh21@bjh21.me.uk>
Mon, 13 May 2024 19:43:28 +0000
(20:43 +0100)
13/13a.bqn
patch
|
blob
|
history
diff --git
a/13/13a.bqn
b/13/13a.bqn
index 6a1c6b1c1ccfad76ae8aabf634940c29b37ff1dc..8f3299de2ceefd2c2e96106183b272cd4f92413d 100644
(file)
--- a/
13/13a.bqn
+++ b/
13/13a.bqn
@@
-6,7
+6,7
@@
Split←{
}
Prep←{
-
{•Show 𝕩 ⋄ •Show ParseVal 𝕩}
¨¨(""⊸≡¨𝕩)Split𝕩
+
ParseVal
¨¨(""⊸≡¨𝕩)Split𝕩
}
ParseList←{𝕊in:
@@
-17,4
+17,8
@@
ParseList←{𝕊in:
ParseVal←{'['=⊑𝕩}◶⟨•ParseFloat,ParseList⟩
-•Show Prep •file.Lines ⊑•args
+Main←{
+ +´({0=⊑⍋𝕩}¨𝕩)/1+↕≠𝕩
+}
+
+•Show Main Prep •file.Lines ⊑•args