Niladic: Difference between revisions
From NARS2000
Jump to navigationJump to search
No edit summary |
mNo edit summary |
||
(3 intermediate revisions by the same user not shown) | |||
Line 2: | Line 2: | ||
<code>'''<big> ∇ z{:=}dealcard<br/> | <code>'''<big> ∇ z{:=}dealcard<br/> | ||
[1] | [1] z←? 52<br/> | ||
∇ </big>'''</code> | ∇ </big>'''</code> | ||
This function would return a random number in the range 1 - 52, but it would not accept any argument | 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 [[System Function TS|{quad}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== | ||
Line 11: | Line 13: | ||
* [[monadic]] (accepts one argument) | * [[monadic]] (accepts one argument) | ||
* [[dyadic]] (accepts two arguments) | * [[dyadic]] (accepts two arguments) | ||
<br/><hr/> | |||
{{Article footer}} | |||
[[Category:Definitions]] |
Latest revision as of 16:42, 26 November 2014
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}}}]]