Use of Local Variables in Lambdas (Direct Functions) ?

2021-07-09 Thread Russtopia
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 no

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

2021-07-09 Thread Blake McBride
I have created many one-liners that use local variables. On Fri, Jul 9, 2021, 6:38 PM Russtopia 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

Bugs (perhaps?) in behaviour of )COPY, )PCOPY with named lambda fns

2021-07-09 Thread Russtopia
I have noticed what I believe are some inconsistencies (bugs?) with how GNU APL handles reloading/overwriting/erasing of symbols which are 'trad fns' versus 'lambda fns'. Consider the following )DUMP file: --8<-- #!/usr/local/bin/apl --script ⍝