From 0cf39c27d95176e1dfc7cda80b099cfb241a162c Mon Sep 17 00:00:00 2001 From: Ben Harris Date: Sat, 1 Jun 2024 10:29:40 +0100 Subject: [PATCH] 22a input parsed --- 22/22a.bqn | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 22/22a.bqn diff --git a/22/22a.bqn b/22/22a.bqn new file mode 100644 index 0000000..cc04f7b --- /dev/null +++ b/22/22a.bqn @@ -0,0 +1,6 @@ +PrepMap←{ >(⌈´≠¨𝕩)⊸↑¨𝕩 } +PrepStep←{ 𝕊"L": 'L'; 𝕊"R": 'R'; •ParseFloat 𝕩 } +PrepPath←{ PrepStep¨(+`⟨0⟩∾≠˝⍉2↕𝕩∊"LR")⊔𝕩 } +Prep←{ ⟨ PrepMap ¯2↓𝕩, PrepPath ¯1⊑𝕩 ⟩ } + +•Show Prep •file.Lines ⊑•args -- 2.30.2