Niladic: Difference between revisions
From NARS2000
Jump to navigationJump to search
(Created page with "A function is '''niladic''' if it does not accept any arguments. For example: {delta} A == See Also== * niladic (accepts no arguments) * monadic (accepts one argume...") |
No edit summary |
||
Line 1: | Line 1: | ||
A function is '''niladic''' if it does not accept any arguments. For example: | A function is '''niladic''' if it does not accept any arguments. For example: | ||
{ | <code>'''<big> ∇ z{:=}dealcard<br/> | ||
[1] z←1 ? 52<br/> | |||
∇ </big>'''</code> | |||
This function would return a random number in the range 1 - 52, but it would not accept any argument, such as would be used for dealing a card in a game. | |||
== See Also== | == See Also== | ||
Line 7: | Line 11: | ||
* [[monadic]] (accepts one argument) | * [[monadic]] (accepts one argument) | ||
* [[dyadic]] (accepts two arguments) | * [[dyadic]] (accepts two arguments) | ||
* [[System Functions]] |
Revision as of 20:56, 27 February 2013
A function is niladic if it does not accept any arguments. For example:
∇ z←dealcard
[1] z←1 ? 52
∇
This function would return a random number in the range 1 - 52, but it would not accept any argument, such as would be used for dealing a card in a game.
See Also
- niladic (accepts no arguments)
- monadic (accepts one argument)
- dyadic (accepts two arguments)
- System Functions