Skip to content

Commit a0eaff5

Browse files
committed
work to lazify /⌿ operator
1 parent ee24d43 commit a0eaff5

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

spec.lisp

+3-4
Original file line numberDiff line numberDiff line change
@@ -1335,7 +1335,7 @@
13351335
(/ (has :title "Reduce")
13361336
(lateral (lambda (operand)
13371337
(values `(operate-reducing ,operand index-origin t)
1338-
'(:axis))
1338+
'(:axis))
13391339
;; (values `(op-compose 'vacomp-reduce :left (sub-lex ,operand)
13401340
;; :index-origin index-origin)
13411341
;; '(:axis))
@@ -1393,9 +1393,8 @@
13931393
(is "+⍀[2]3 4⍴⍳12" #2A((1 3 6 10) (5 11 18 26) (9 19 30 42)))))
13941394
(\¨ (has :title "Each")
13951395
(lateral (lambda (operand)
1396-
;; (april (with (:space array-lib-space) (:unrendere)) "↓disp 1 0 1 /sam⊢{⊂'---'}¨ vex")
1397-
;; `(operate-each ,operand) ; "bla←{ ⍺[0] } ⋄ {⎕io←0 ⋄ {⍵∘bla¨⊂0 1} ⎕←⍵} 3 4"
1398-
`(op-compose 'vacomp-each :left (sub-lex ,operand))
1396+
`(operate-each ,operand) ; "bla←{ ⍺[0] } ⋄ {⎕io←0 ⋄ {⍵∘bla¨⊂0 1} ⎕←⍵} 3 4"
1397+
;; `(op-compose 'vacomp-each :left (sub-lex ,operand))
13991398
))
14001399
(tests (is "⍳¨1 2 3" #(#(1) #(1 2) #(1 2 3)))
14011400
(is "⊃¨↓⍳5" 1)

0 commit comments

Comments
 (0)