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:


{delta} A
<code>'''<big>&nbsp;&nbsp;&nbsp;&nbsp;∇ z{:=}dealcard<br/>
[1]&nbsp;&nbsp;&nbsp;&nbsp;z←1 ? 52<br/>
&nbsp;&nbsp;&nbsp;&nbsp;∇ </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 01:56, 28 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