bug-apl
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bug-apl] { ⍵, +/ ¯2 ↑ ⍵ } / 10 ⍴ 1


From: Louis de Forcrand
Subject: Re: [Bug-apl] { ⍵, +/ ¯2 ↑ ⍵ } / 10 ⍴ 1
Date: Sat, 15 Apr 2017 22:38:11 -0400

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

On 15 Apr 2017, at 17:18, Greg Lee <address@hidden> wrote:

            { ⍵, +/ ¯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







reply via email to

[Prev in Thread] Current Thread [Next in Thread]