From c34c459d5b7e584a0795d605628f560d46767894 Mon Sep 17 00:00:00 2001 From: Ben Harris Date: Fri, 14 Jun 2024 10:17:04 +0100 Subject: [PATCH] 23b: use namespace for loop variable rather than list --- 23/23b.bqn | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/23/23b.bqn b/23/23b.bqn index 8b5a1ac..6ae9b64 100644 --- a/23/23b.bqn +++ b/23/23b.bqn @@ -38,12 +38,12 @@ Round←{𝕊map: Trim map } -Main←{ - ⟨i,·,·⟩←{ - 𝕊⟨i,this,prev⟩:⟨i+1,Round this,this⟩ +Main←{𝕊map: + ⟨i⟩←{ + 𝕊⟨i,this⟩: {i⇐i+1, prev⇐this, this⇐Round this} } •_while_ { - 𝕊⟨·,this,prev⟩:this≢prev - } ⟨0,𝕩,@⟩ + 𝕊⟨prev,this⟩: this≢prev + } {i⇐0, prev⇐@, this⇐map} i } -- 2.30.2