From cc4eb4d3162886de642f9a93755fcf66f4b223e4 Mon Sep 17 00:00:00 2001 From: Ben Harris Date: Mon, 13 May 2024 20:43:28 +0100 Subject: [PATCH] 13a working on the example but probably subtly wrong --- 13/13a.bqn | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/13/13a.bqn b/13/13a.bqn index 6a1c6b1..8f3299d 100644 --- 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 -- 2.30.2