poking and prodding

This commit is contained in:
rhiannon morris 2022-12-04 23:52:42 +01:00
parent 100c504855
commit 72d3d8da40

10
aoc.bqn
View file

@ -12,12 +12,12 @@ Day1 ⇐ (⊑ ⋈ (+´3⊸↑))∘(+´¨)∘Split∘(•BQN⎊0¨)∘•FLine
Day2 { Day2 {
B (A {1+𝕩+3×3|1+𝕩-𝕨}) {3|𝕨+𝕩-1} B (A {1+𝕩+3×3|1+𝕩-𝕨}) {3|𝕨+𝕩-1}
+´˘ (AB)´{asb:a-'A',b-'X'}˘ >•FLines 𝕩 +´ (AB)´{"AX"-˜02𝕩}¨ •FLines 𝕩
} }
# ⟨ 17189 13490 ⟩ # ⟨ 17189 13490 ⟩
Day3 { Day3 {
Prio - "`&"('Z') Prio - 'Z'"`&"
A +´ {(Prio¨×𝕩)𝕨}´(<˘ 2)¨ A +´ {(Prio¨×𝕩)𝕨}´(<˘ 2)¨
B +´ {abc:(Prio¨a)×b(a)c}¨(3Chunk)(¨) B +´ {abc:(Prio¨a)×b(a)c}¨(3Chunk)(¨)
(AB) •FLines 𝕩 (AB) •FLines 𝕩
@ -25,10 +25,10 @@ Day3 ⇐ {
# ⟨ 7683 2488 ⟩ # ⟨ 7683 2488 ⟩
Day4 { Day4 {
Line •BQN> '‿'("-,")¨ # hehe Line •BQN '‿'("-,")¨ # hehe
F {´´˘´1(2¨3)𝕩˜𝕨-'a'} F {´´˘´1(32)𝕩˜𝕨-'a'}
A "cabddbac"F, B "cabcacda"F A "cabddbac"F, B "cabcacda"F
+´(AB)Line¨•FLines 𝕩 +´ (AB)Line¨ •FLines 𝕩
} }
# ⟨ 536 845 ⟩ # ⟨ 536 845 ⟩
# •Show Day4 ⊑•args # •Show Day4 ⊑•args