It seems as though using the foo←{...} style of writing functions is quite
popular in the Dyalog community.

An example file written in this style can be found here:
https://github.com/mattcunningham/apl-bayesian-classifier/blob/master/bayes.full.apl

As we can see, functions are declared in this style:

      foo ← {
          x ← 1+⍵
          y ← 1+⍺
          x+y
      }

I'd like to see this being supported in GNU APL as well.

Related, I'd like to be able to use ◊ inside a lambda function. Whenever I
port a function from Dyalog I end up having to rewrite these using ⊣ and ⊢,
which is not hard but feels arbitrary. Right now ◊ doesnt work at all in
lambdas, so adding support for it shouldn't cause any compatibility issues
with APL2.

Regards,
Elias

Reply via email to