Bind: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
{{Built-in|Bind|∘}} is a [[primitive operator]]. It shares the glyph <source lang=apl inline>∘</source> with [[Beside]]. It can only be called monadically. | {{Built-in|Bind|∘}} is a [[primitive operator]]. It shares the glyph <source lang=apl inline>∘</source> with [[Beside]]. It's [[derived function]]s can only be called monadically. | ||
Called with an array left operand <source lang=apl inline>A</source> and function right operand <source lang=apl inline>g</source>, <source lang=apl inline>(A∘f) X</source> is equivalent to <source lang=apl inline>A f X</source>. | Called with an array left operand <source lang=apl inline>A</source> and function right operand <source lang=apl inline>g</source>, <source lang=apl inline>(A∘f) X</source> is equivalent to <source lang=apl inline>A f X</source>. |
Revision as of 22:16, 26 April 2020
∘
|
Bind (∘
) is a primitive operator. It shares the glyph ∘
with Beside. It's 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