phantomics / april

The APL programming language (a subset thereof) compiling to Common Lisp.
Apache License 2.0
604 stars 31 forks source link

Problem with rank in dfn #250

Closed paulapatience closed 2 years ago

paulapatience commented 2 years ago
CL-USER> (april:april-c "⊢⍤1(⊢⍤1)⍳3")
#(1 2 3) ; correct result
CL-USER> (april:april-c "{⊢⍤1(⊢⍤1)⍵}⍳3")
#<FUNCTION (LAMBDA (APRIL::OMEGA &OPTIONAL APRIL::ALPHA)
             :IN
             APRIL::OPERATE-AT-RANK) {100D49584B}>

Bonus (this is a syntax error in Dyalog APL):

CL-USER> (april:april-c "{⊢⍤1⍵}⍳3")
#<FUNCTION (LAMBDA (APRIL::OMEGA &OPTIONAL APRIL::ALPHA)
             :IN
             APRIL::OPERATE-AT-RANK) {100D515AFB}>
phantomics commented 2 years ago

Both of the above problems are fixed; the latter now throws an error.