[Top][All Lists]

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

Re: [Bug-apl] Diamond separator inside a lambda expression

From: Daniel H. Leidisch
Subject: Re: [Bug-apl] Diamond separator inside a lambda expression
Date: Fri, 21 Feb 2014 21:07:04 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux)


address@hidden writes:

> Hi, since I am a novice in APL, I can't be sure wether it is a bug or
> not, but I can't make the diamond separator work in direct functions
> {}.
> For instance, something like:
>   { A ← ⍵ ⋄ A+1 } 2
> works with Dyalog APL as well as with NGN APL, but it raises an error
> with GNU APL.

Jürgen mentioned recently that this won't be implemented, but I'll let
him speak for himself.

Anyway, you can use left to achieve something similar:

       { A+1 ⊣ A ← ⍵ } 2

It has the added benefit that it can be read right to left, which feels
more natural in APL (at least in my opinion), since it follows the usual
order of evaluation.



> Best regards,

reply via email to

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