about summary refs log tree commit diff
path: root/users
diff options
context:
space:
mode:
Diffstat (limited to 'users')
-rwxr-xr-xusers/sterni/exercises/aoc/2021/solutions.bqn3
1 files changed, 1 insertions, 2 deletions
diff --git a/users/sterni/exercises/aoc/2021/solutions.bqn b/users/sterni/exercises/aoc/2021/solutions.bqn
index 0d7ed9dbcd9d..1810fc316b4b 100755
--- a/users/sterni/exercises/aoc/2021/solutions.bqn
+++ b/users/sterni/exercises/aoc/2021/solutions.bqn
@@ -239,8 +239,7 @@ day13Folds ← ParseFolds 1 ⊑ day13Input
 
 PerformAllFolds ← {(-1)⊸⊑(<𝕩) {(𝕨 _Fold)´𝕩}` 𝕨}
 DotMatrix ← {
-  width ← 1+⌈´⊑¨𝕩
-  height ← 1+⌈´1⊸⊑¨𝕩
+  ⟨width, height⟩ ← 1+⌈´𝕩
   {𝕩? '█';' '}¨ height‿width⥊≠¨⊔((⊣+(width⊸×)∘⊢)´)¨ 𝕩
 }