Null object: Difference between revisions
Content added Content deleted
No edit summary |
(→{{header|R}}: Added REBOL example.) |
||
Line 298:
foo <- function(){} # function that does nothing
foo() # returns NULL</lang>
=={{header|REBOL}}==
<lang REBOL>x: none
print either none? x ["x is none."]["x is not none."]</lang>
Output:
<pre>x is none.</pre>
=={{header|Ruby}}==
|