Discussion:
[Bug-apl] { ⍵, +/ ¯2 ↑ ⍵ } / 10 ⍴ 1
Greg Lee
2017-04-15 21:18:43 UTC
Permalink
{ ⍵, +/ ¯2 ↑ ⍵ } / 10 ⍎ 1

SYNTAX ERROR

λ1/10⍎1

^ ^


This might be a regression; I found this example on an older web page that
used version 1.4 / 7887. It executes correctly in Dyalog's online
interpreter.

Regards

Greg
Louis de Forcrand
2017-04-16 02:38:11 UTC
Permalink
The syntax error is triggered because your lambda is monadic. Add an alpha somewhere in there to turn it into dyadic function, for example by adding "left-tac alpha" to the end of it.

A better option here however would be to use the power operator.
Also, beware when using lambdas in GNU APL as they don't behave exactly like those in Dyalog. It's better to stick to del definitions.

Cheers,
Louis
Post by Greg Lee
{ ⍵, +/ ¯2 ↑ ⍵ } / 10 ⍎ 1
SYNTAX ERROR
λ1/10⍎1
^ ^
This might be a regression; I found this example on an older web page that used version 1.4 / 7887. It executes correctly in Dyalog's online interpreter.
Regards
Greg
Loading...