Bind: Difference between revisions
Jump to navigation
Jump to search
(It's confusing but Bind is also called Compose) |
m (Text replacement - "{{APL built-ins}}" to "{{APL built-ins}}Category:Primitive operators") |
||
Line 22: | Line 22: | ||
{{APL built-ins}} | {{APL built-ins}}[[Category:Primitive operators]] |
Revision as of 13:44, 30 April 2020
∘
|
Bind (∘
) is a primitive operator. It shares the glyph Jot (∘
) with Beside; in many dialects the two operators share the name Compose. Its derived functions can only be called monadically.
Called with an array left operand A
and function right operand g
, (A∘f) X
is equivalent to A f X
.
Called with a function left operand f
and array right operand B
, (f∘B) X
is equivalent to X f B
.
Common usage
Bind is used to create a derived function with a single constant argument, particularly in tacit programming:
Inc←+∘1 Inc 1 2 3 2 3 4
External links
Lessons
Documentation