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

On Fri, Jul 9, 2021, 6:38 PM Russtopia <rma...@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