[Top][All Lists]

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

Use of Local Variables in Lambdas (Direct Functions) ?

From: Russtopia
Subject: Use of Local Variables in Lambdas (Direct Functions) ?
Date: Fri, 9 Jul 2021 16:37:27 -0700

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?


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.

reply via email to

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