Skip to content

Commit

Permalink
Check Rotate left argument type even if right argument is empty
Browse files Browse the repository at this point in the history
  • Loading branch information
mlochbaum committed Apr 3, 2024
1 parent 86c7af6 commit 80ad209
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions docs/bqn.js

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions src/r1.bqn
Original file line number Diff line number Diff line change
Expand Up @@ -320,8 +320,8 @@ Reverse←{
l𝕩
((l-1)-l) 𝕩
}
RotReduce{
"𝕨⌽𝕩: 𝕨 must consist of integers" ! Int𝕨
RotCheck("𝕨⌽𝕩: 𝕨 must consist of integers" ! Int)
RotReduceRotCheck{
𝕩+0=𝕩r𝕨-𝕩×⌊𝕨÷𝕩
"𝕨⌽𝕩: 𝕨 too large" ! r<𝕩
r
Expand All @@ -330,7 +330,7 @@ RotL ← ↓∾↑
Rot ← (1==)RotL(↕≠)⊏⊢,RotL
Rotate ← ⟨""
IsAtom, 0,0
(RotReduce Rot )(0<≠)
(0<≠)RotCheck, RotReduce Rot
(RotReduce RotL ·↕⊢)
_multiAxis⟜ToArray _fillBy_

Expand Down

0 comments on commit 80ad209

Please sign in to comment.