Beside: Difference between revisions

Jump to navigation Jump to search
287 bytes added ,  10:18, 6 September 2021
→‎Examples: should be monadic
m (Added examples)
(→‎Examples: should be monadic)
(4 intermediate revisions by 2 users not shown)
Line 4: Line 4:


== Examples ==
== Examples ==
When use [[monadic]]ally, <source lang=apl inline>f∘g</source> behaves the same as [https://en.wikipedia.org/wiki/Function_composition function compositian].
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 use [[dyadic]]ally, <source lang=apl inline>f∘g</source> forms a [[Hook]].
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>
24

edits

Navigation menu