Monadic function: Difference between revisions

Jump to navigation Jump to search
19 bytes added ,  05:24, 29 May 2020
m
Fix a red link
m (Kinds of functions category)
m (Fix a red link)
Line 11: Line 11:
1 4 9 16 25 25 16 9 4 1
1 4 9 16 25 25 16 9 4 1
</source>
</source>
The functions <source lang=apl inline>f</source>, <source lang=apl inline>×⍨</source> ([[Times]] [[Commute]]), and <source lang=apl inline>⍳</source> ([[Iota]]) are each monadic functions: a named [[dfn]], a [[derived function]], and a [[primitive]], respectively. Evaluating them first produces the [[Index|indices]] up to 5, then multiplies each index by itself to square it, then [[catenate]]s the resulting list to its [[reverse]].
The functions <source lang=apl inline>f</source>, <source lang=apl inline>×⍨</source> ([[Times]] [[Commute]]), and <source lang=apl inline>⍳</source> ([[Iota]]) are each monadic functions: a named [[dfn]], a [[derived function]], and a [[primitive function|primitive]], respectively. Evaluating them first produces the [[Index|indices]] up to 5, then multiplies each index by itself to square it, then [[catenate]]s the resulting list to its [[reverse]].


== External links ==
== External links ==
trusted
183

edits

Navigation menu