Niladic function: Difference between revisions

Jump to navigation Jump to search
18 bytes added ,  14:29, 16 March 2020
no edit summary
mNo edit summary
No edit summary
Line 3: Line 3:
[[System variable]]s like <source lang=apl inline>⎕TS</source> ([[time stamp]]) might be considered instances of niladic functions but are usually not described this way.
[[System variable]]s like <source lang=apl inline>⎕TS</source> ([[time stamp]]) might be considered instances of niladic functions but are usually not described this way.


A niladic function cannot be created as a [[derived function]] or [[dfn]]. However, an APL programmer can define a [[tradfn]] which takes no arguments:
In most dialects, a niladic function cannot be created as a [[derived function]] or [[dfn]]. However, an APL programmer can define a [[tradfn]] which takes no arguments:
<source lang=apl>
<source lang=apl>
∇ res←set_a
∇ res←set_a

Navigation menu