Beside: Difference between revisions

Jump to navigation Jump to search
88 bytes added ,  09:08, 6 September 2021
Line 4: Line 4:


== Examples ==
== Examples ==
When use [[monadic]]ally, <source lang=apl inline>f∘g</source> behaves the same as an [[atop]].
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,  
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 [[Hook]].
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 operator is left-associative, unlike functions which is right-associative
       ⍝ same as this, because operators are left-associative, unlike functions which are right-associative
       'UwU'(≡∘⌽)⍨'UwU'
       'UwU'(≡∘⌽)⍨'UwU'
1
1

Navigation menu