Null object: Difference between revisions

Content deleted Content added
No edit summary
→‎{{header|R}}: Added REBOL example.
Line 298: Line 298:
foo <- function(){} # function that does nothing
foo <- function(){} # function that does nothing
foo() # returns NULL</lang>
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}}==
=={{header|Ruby}}==