File tree Expand file tree Collapse file tree 2 files changed +9
-3
lines changed Expand file tree Collapse file tree 2 files changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -568,13 +568,13 @@ impl Compiler {
568
568
} ,
569
569
) ;
570
570
}
571
- if sig. args > 2 {
571
+ if sig. outputs >= 2 {
572
572
instrs. push ( Instr :: PushTemp {
573
573
stack : TempStack :: Inline ,
574
- count : sig. args - 2 ,
574
+ count : sig. outputs - 1 ,
575
575
span,
576
576
} ) ;
577
- for _ in 0 ..sig. args - 2 {
577
+ for _ in 0 ..sig. outputs - 1 {
578
578
instrs. push ( Instr :: Prim ( Flip , span) ) ;
579
579
instrs. push ( Instr :: PopTemp {
580
580
stack : TempStack :: Inline ,
Original file line number Diff line number Diff line change @@ -628,3 +628,9 @@ repr[{[[1 2][2 3]][3 4]}{[[1 2][2 3]]□{[[1 2][2 3]]□□[3 4]}}]
628
628
⍤⟜≍: 3 ⍤⟜≍: □1 ⋊aZ {1 2 3}
629
629
⍤⟜≍: [1 3 2] °⋊acb 1 2 3
630
630
⍤⟜≍: [1 3 2] °(°[⊙⊙∘]⊏0_2_1) 1 2 3
631
+
632
+ # But
633
+ ⍤⟜≍: [3 ¯3] [⫯¯ 3]
634
+ ⍤⟜≍: [5 8] [⫯+ 3 5]
635
+ ⍤⟜≍: [4 1 2 3 4] [⫯⊙⊙⊙∘ 1 2 3 4]
636
+ ⍤⟜≍: [4 1 2 3] [⫯⊙⊙⊙◌ 1 2 3 4]
You can’t perform that action at this time.
0 commit comments