fix ⍟ with empty typed repeat counts
This commit is contained in:
parent
647a0b97e7
commit
af0a40c732
@ -59,6 +59,7 @@ void repeat_bounds(i64* bound, B g) { // doesn't consume
|
|||||||
#define UPD_BOUNDS(B,I) ({ i64 i_ = (I); if (i_<bound[0]) bound[0] = i_; if (i_>bound[1]) bound[1] = i_; })
|
#define UPD_BOUNDS(B,I) ({ i64 i_ = (I); if (i_<bound[0]) bound[0] = i_; if (i_>bound[1]) bound[1] = i_; })
|
||||||
if (isArr(g)) {
|
if (isArr(g)) {
|
||||||
usz ia = IA(g);
|
usz ia = IA(g);
|
||||||
|
if (ia == 0) return;
|
||||||
u8 ge = TI(g,elType);
|
u8 ge = TI(g,elType);
|
||||||
if (elNum(ge)) {
|
if (elNum(ge)) {
|
||||||
i64 bres[2];
|
i64 bres[2];
|
||||||
|
|||||||
@ -333,6 +333,7 @@ w←1‿1⥊1 ⋄ x←2⥊1 ⋄ w‿x <¨↩ ⋄ {! (∾⟨•Repr𝕩,": Expe
|
|||||||
%USE eqvar ⋄ a←¯5+↕10 ⋄ {1⊸+⍟𝕩 ⋈10}_eqvar a %% ⋈¨ 5+↕10
|
%USE eqvar ⋄ a←¯5+↕10 ⋄ {1⊸+⍟𝕩 ⋈10}_eqvar a %% ⋈¨ 5+↕10
|
||||||
%USE eqvar ⋄ a←¯5+↕10 ⋄ {1+⍟𝕩 ⋈10}_eqvar a %% ⋈¨ 5+↕10
|
%USE eqvar ⋄ a←¯5+↕10 ⋄ {1+⍟𝕩 ⋈10}_eqvar a %% ⋈¨ 5+↕10
|
||||||
%USE eqvar ⋄ a←¯5+↕10 ⋄ {1+⍟(𝕩{!𝕩≡⋈10 ⋄ 𝕗}) ⋈10}_eqvar a %% ⋈¨ 5+↕10
|
%USE eqvar ⋄ a←¯5+↕10 ⋄ {1+⍟(𝕩{!𝕩≡⋈10 ⋄ 𝕗}) ⋈10}_eqvar a %% ⋈¨ 5+↕10
|
||||||
|
!∘0⍟⟨↕0, ⟨⟩, ""⟩ 0 %% ⟨⟨⟩,⟨⟩,⟨⟩⟩
|
||||||
!"Calling a modifier" % 1⊸+⍟{∘} 0
|
!"Calling a modifier" % 1⊸+⍟{∘} 0
|
||||||
!"⍟: 𝔾 contained non-number" % 1⊸+⍟⟨1,∘,3⟩ 0
|
!"⍟: 𝔾 contained non-number" % 1⊸+⍟⟨1,∘,3⟩ 0
|
||||||
!"Expected integer, got 1.5" % 1⊸+⍟1.5 0
|
!"Expected integer, got 1.5" % 1⊸+⍟1.5 0
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user