24
edits
m (Added examples) |
(→Examples: should be monadic) |
||
(4 intermediate revisions by 2 users not shown) | |||
Line 4: | Line 4: | ||
== Examples == | == Examples == | ||
When | When used [[monadic]]ally, <source lang=apl inline>f∘g</source> behaves the same as an [[atop]]: | ||
<source lang=apl> | <source lang=apl> | ||
Line 14: | Line 14: | ||
</source> | </source> | ||
When | When used [[dyadic]]ally, <source lang=apl inline>f∘g</source> forms a dyadic [[hook]]: | ||
<source lang=apl> | <source lang=apl> | ||
Line 21: | Line 21: | ||
⍝ same as | ⍝ same as | ||
'oy'≡⌽'yo' | 'oy'≡⌽'yo' | ||
1 | |||
</source> | |||
When used monadically with [[Commute]], <source lang=apl inline>f∘g</source> forms a monadic [[hook]]: | |||
<source lang=apl> | |||
≡∘⌽⍨'UwU' | |||
1 | |||
⍝ same as this, because operators are left-associative, unlike functions which are right-associative | |||
(≡∘⌽)⍨'UwU' | |||
1 | |||
⍝ same as | |||
'UwU'≡⌽'UwU' | |||
1 | 1 | ||
</source> | </source> |
edits