2,951
edits
Miraheze>Marshall (Created page with "In APL syntax, an '''argument''' is one of the values passed to a function. The valence of a function is determined by the number of arguments it takes: [[niladic]...") |
m (Categories) |
||
(4 intermediate revisions by 2 users not shown) | |||
Line 6: | Line 6: | ||
When a non-niladic function is called, its valence is determined from the context around it: if there is a valid argument to its left, it will be called dyadically with that value as its left argument, and otherwise it will be called monadically. A function always needs a valid argument to its right in order to be called directly. [[Derived function]]s and [[train]]s follow different rules: the valence of a function within one of these function depends on its context (for example, the [[operator]] which it is an [[operand]] of) and the valence of the entire derived function. | When a non-niladic function is called, its valence is determined from the context around it: if there is a valid argument to its left, it will be called dyadically with that value as its left argument, and otherwise it will be called monadically. A function always needs a valid argument to its right in order to be called directly. [[Derived function]]s and [[train]]s follow different rules: the valence of a function within one of these function depends on its context (for example, the [[operator]] which it is an [[operand]] of) and the valence of the entire derived function. | ||
{{APL syntax}}[[Category:Function characteristics]][[Category:APL syntax]] |