bug-apl
[Top][All Lists]
Advanced

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

Re: Use of Local Variables in Lambdas (Direct Functions) ?


From: Blake McBride
Subject: Re: Use of Local Variables in Lambdas (Direct Functions) ?
Date: Fri, 9 Jul 2021 19:54:31 -0500

I have created many one-liners that use local variables.

On Fri, Jul 9, 2021, 6:38 PM Russtopia <rmagee@gmail.com> wrote:
Hi, reading GNU APL documentation, in the section 2.7 "2.7 Direct Functions (Lambdas)",

It states that lambdas do not support multiple expressions (amongst other features). If this is the case, what purpose does allowing local variable declarations serve?

Allowing

SUM ← { ⍺ + ⍵ ;C;D }
.. but not allowing multiple statements prevents assigning to C or D, or really using them at all, so what is the purpose of allowing their declaration? Please forgive me if I am missing something obvious here.
Thanks,
-Russ


reply via email to

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