Valence: Difference between revisions
Content added Content deleted
("Categorize valence and atomicity pages") |
("Reorder categories") |
||
(3 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
'''Valence''', a.k.a. '''arity''' or '''adicity''', is the number of arguments a function accepts. |
'''Valence''', a.k.a. '''arity''' or '''adicity''', is the number of arguments a function accepts. |
||
The minimum valence of a k function is 1 and the maximum is 8. |
The minimum valence of a k function is 1 and the maximum is 8. |
||
Applying a function to fewer arguments creates a [[projection]]. Applying it to more arguments usually causes a rank error, though some primitives may support more arguments than their nominal valence. |
Applying a function to fewer arguments creates a [[projection]]. Applying it to more arguments usually causes a rank error, though some primitives may support more arguments than their nominal valence. |
||
Line 27: | Line 29: | ||
|} |
|} |
||
⚫ | |||
⚫ | |||
[[Category:Adverbs]] |
|||
[[Category:Primitives]] |
[[Category:Primitives]] |
||
⚫ | |||
⚫ |
Latest revision as of 06:02, 27 July 2022
Valence, a.k.a. arity or adicity, is the number of arguments a function accepts.
The minimum valence of a k function is 1 and the maximum is 8.
Applying a function to fewer arguments creates a projection. Applying it to more arguments usually causes a rank error, though some primitives may support more arguments than their nominal valence.
The following Greek and Latin-based English words are commonly used to describe a function of a particular valence[1]:
Greek | Latin | |
---|---|---|
1 | monadic | unary |
2 | dyadic | binary |
3 | triadic | ternary |
4 | tetradic | quaternary |