Hi Christian,

correct. In GNU APL you cannot use values in defined operators where functions are expected,
except for very few primitive operators.

A work-around for a third value in lambdas is to use the axis χ instead of function :

      FOO ← { ⍺ χ ⍵ }
      1 FOO[2] 3
1 2 3


/// Jürgen


On 05/18/2016 09:59 PM, Christian Robert wrote:
Looking at

 https://www.youtube.com/watch?v=DmT80OseAGs


Every thing goes fine (when he says "take" and use "⊃" you write "↑" instead in gnuapl)

[...]

      88 {⍺ ⍵} s44
88 ┌→──────┐
   ↓0 0 0 0│
   │0 0 2 1│
   │3 0 0 4│
   │0 0 0 0│
   └───────┘


at the minute 03:41 it fail with a syntax error

      88 (3 2 {⍺ ⍶ ⍵}) s44
SYNTAX ERROR
      88(3 2 λ1)s44
      ^         ^

Does this means that in gnuapl "⍶" cannot be data ? (ie: *must* be a function)


Xtian.

Reply via email to