Catamorphism: Difference between revisions

(add BQN)
Line 414:
 
BQN has two different primitives for catamorphism:
<ul>
- Fold(<code>´</code>): Works on lists only.
- Insert<li>Fold(<code>˝´</code>): Works on arrayslists with higher rankonly.</li>
- Fold<li>Insert(<code>´˝</code>): Works on listsarrays onlywith higher rank.</li>
</ul>
 
Both of these primitives take a dyadic function, and an optional initial element.
236

edits