bug-apl
[Top][All Lists]
Advanced

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

Re: [Bug-apl] Strange bug with /⍨ in a lambda


From: Elias Mårtenson
Subject: Re: [Bug-apl] Strange bug with /⍨ in a lambda
Date: Sun, 28 Dec 2014 23:22:19 +0800

I believe this is related to a previous discussion started by me in this thread from last month: http://lists.gnu.org/archive/html/bug-apl/2014-11/msg00057.html

You can work around your problem by typing this:

      {⍵ (/⍨) (2|⍵)} ⍳3
1 3

Regards,
Elias

On 28 December 2014 at 22:54, Tobia Conforto <address@hidden> wrote:
/⍨ by itself seems to work:

      (2|⍳3) / ⍳3
1 3
      (⍳3) /⍨ 2|⍳3
1 3

But inside a lambda I get a syntax error:

      {(2|⍵) / ⍵} ⍳3
1 3
      {⍵ /⍨ 2|⍵} ⍳3
SYNTAX ERROR
λ1[1]  λ←⍵/⍨2∣⍵
       ^   ^

Tobia


reply via email to

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