diff options
| author | Marshall Lochbaum <mwlochbaum@gmail.com> | 2023-02-14 09:59:47 -0500 |
|---|---|---|
| committer | Marshall Lochbaum <mwlochbaum@gmail.com> | 2023-02-14 09:59:47 -0500 |
| commit | 4d9aeaf87d33292b007900d1fda2c2ec1ed8196c (patch) | |
| tree | 16ab07eaeed77ea6b71202b5d0911a668016c5d9 /src | |
| parent | 29c036e86130e35a473bd9c0867b53c470a0aa08 (diff) | |
Fix infinite loop when 𝕨 contains ∞ in reshape
Diffstat (limited to 'src')
| -rw-r--r-- | src/r1.bqn | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -713,7 +713,7 @@ ReshapeT ← "∘⌊⌽↑"_glyphLookup_(↕5) Reshape←{ "𝕨⥊𝕩: 𝕨 must have rank at most 1" ! 1≥=𝕨 s←Deshape 𝕨 - sp←0+´p←(1-Nat)⌜s + sp←0+´p←Nat◶⟨1,∞⊸=⟩⌜s "𝕨⥊𝕩: 𝕨 must consist of natural numbers" ! 1≥sp n←≠d←Deshape 𝕩 l←sp◶(1×´⊢)‿{ |
