Bind: Difference between revisions
Jump to navigation
Jump to search
(I'm guessing g was meant here, though it makes little difference.) |
(→Documentation: BQN) |
||
Line 20: | Line 20: | ||
=== Documentation === | === Documentation === | ||
* [https://help.dyalog.com/18.0/#Language/Primitive%20Operators/Bind.htm Dyalog] | * [https://help.dyalog.com/18.0/#Language/Primitive%20Operators/Bind.htm Dyalog] | ||
* [https://mlochbaum.github.io/BQN/doc/hook.html BQN] (uses [[hook]]) | |||
{{APL built-ins}}[[Category:Primitive operators]][[Category:Composition operators]] | {{APL built-ins}}[[Category:Primitive operators]][[Category:Composition operators]] |
Revision as of 02:38, 28 May 2022
∘
|
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∘g) X
is equivalent to A g 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