I was trying to "curry" a function in GNU APL, however it doesn't seem to work?
For example:
(1∘+) 1
SYNTAX ERROR
(1∘+)1
^ ^
What am I doing wrong? Is ∘ the wrong glyph to use?
I was trying to "curry" a function in GNU APL, however it doesn't seem to work?
For example:
(1∘+) 1
SYNTAX ERROR
(1∘+)1
^ ^
What am I doing wrong? Is ∘ the wrong glyph to use?
Copyright © 2021 Jogjafile Inc.
GNU APL does not have the Bind meaning of
∘, found in Dyalog and related implementations. Instead, the∘glyph is exclusively used for the outer product notation,∘.f.However, you can define a reasonable substitute yourself:
It can be used almost like the primitive, except requiring a space when adjacent to a name on its left or a non-glyph on its right:
Note that the above substitute does not provide function composition. In order to also include this, we have to go for a more involved definition:
Now everything works: