diff --git a/2022/bqn/day_05.bqn b/2022/bqn/day_05.bqn new file mode 100644 index 0000000..93a0e58 --- /dev/null +++ b/2022/bqn/day_05.bqn @@ -0,0 +1,8 @@ +Split ⇐ {𝕩⊔˜(⊢-˜+`׬)0=≠¨𝕩} +Transpose ⇐ =⊸{<⎉𝕨⍉⍟𝕨>𝕩} +OnlyCrates ⇐ ∊⟜('A'+↕26)⊸/ +RejectEmpty ⇐ {((≠¨𝕩) > 0) / 𝕩} + +⟨stacks, moves⟩ ← Split •Flines "../day_05.txt" +stacks ↩ RejectEmpty OnlyCrates¨ Transpose stacks +•Show stacks