Niladic

From NARS2000
Revision as of 16:42, 26 November 2014 by Paul Robinson (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

A function is niladic if it does not accept any arguments. For example:

    ∇ z←dealcard
[1]    z←? 52
    ∇

This function would return a random number in the range 1 - 52, but it would not accept any argument. Such a function might be useful in the case of dealing a card in a game since the number of cards is always the same.

Some System functions are niladic in that they return a value, but you do not present them an argument. The ⎕TS function returns the current time stamp, that is, the current date and time, but you cannot give it a date or time in order to, for example, change the date or time.

See Also




See Also
System Commands System Variables and Functions Operators


Keyboard
Alt+Shift
Alt ¨ ¯ < > × ÷
Shift ~ ! @ # $ % ^ & * ( ) _ +
Key ` 1 2 3 4 5 6 7 8 9 0 - =
Alt+Shift
Alt ? § π
Shift Q W E R T Y U I O P { } |
Key q w e r t y u i o p [ ] \
Alt+Shift
Alt
Shift A S D F G H J K L : "
Key a s d f g h j k l ; '
Alt+Shift χ
Alt
Shift Z X C V B N M < > ?
Key z x c v b n m , . /
NARS 2000 Lang
Tool
Bar
+ - × ÷ * ! ? |
< = >
~ § π .. ,
/ \ ¨ .
_ ¯
Second Row i j k i j k l g p r v x

[[Category:Mouse Group {{{1}}}|{{{2}}}]]