aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/r1.bqn2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/r1.bqn b/src/r1.bqn
index 55cff957..896918d9 100644
--- a/src/r1.bqn
+++ b/src/r1.bqn
@@ -735,7 +735,7 @@ Reshape←{
_group←{
"⊔: Grouping argument must consist of integers" ! 1×´Int⌜𝕩
"⊔: Grouping argument values cannot be less than ¯1" ! 1×´¯1⊸≤⌜𝕩
- GL←GroupLen⋄𝕩↩𝕨(-˜⟜≠{GL↩(𝕨⊑𝕩)GL⊢⋄𝕨↑𝕩}⊢)⍟(0⊘⊣)𝕩
+ GL←GroupLen⋄𝕩↩𝕨(-˜⟜≠{GL↩(0⌈𝕨⊑𝕩)GL⊢⋄𝕨↑𝕩}⊢)⍟(0⊘⊣)𝕩
d←(l←GL𝕩)GroupOrd𝕩
i←0⋄(𝔽d⊏˜{(i+↩𝕩)⊢i⊸+⌜↕𝕩})⌜l
}