24
edits
(→Examples: should be monadic) |
|||
(One intermediate revision by one other user 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 24: | Line 24: | ||
</source> | </source> | ||
When used with [[Commute]], <source lang=apl inline>f∘g</source> forms a [[ | When used monadically with [[Commute]], <source lang=apl inline>f∘g</source> forms a monadic [[hook]]: | ||
<source lang=apl> | <source lang=apl> | ||
≡∘⌽⍨'UwU' | ≡∘⌽⍨'UwU' | ||
1 | 1 | ||
⍝ same as this, because | ⍝ same as this, because operators are left-associative, unlike functions which are right-associative | ||
(≡∘⌽)⍨'UwU' | |||
1 | 1 | ||
⍝ same as | ⍝ same as |
edits