bug-apl
[Top][All Lists]
Advanced

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

[Bug-apl] Suggestion: Support multi-line lambda functions


From: Elias Mårtenson
Subject: [Bug-apl] Suggestion: Support multi-line lambda functions
Date: Mon, 9 May 2016 12:57:11 +0800

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

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