Niladic

From NARS2000
Jump to navigationJump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

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
A+S
Alt ¨ ¯ < > × ÷
Sh ~ ! @ # $ % ^ & * ( ) _ +
Key ` 1 2 3 4 5 6 7 8 9 0 - =
A+S
Alt ? § π
Sh Q W E R T Y U I O P { } |
Key q w e r t y u i o p [ ] \
A+S
Alt
Sh A S D F G H J K L : "
Key a s d f g h j k l ; '
A+S χ
Alt
Sh 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}}}]]