Anonymous user
Empty string: Difference between revisions
no edit summary
(Added Standard ML section) |
No edit summary |
||
Line 983:
# check that string is not empty
s <> ""</lang>
=={{header|Smalltalk}}==
<lang smalltalk>
"Assign empty string to a variable"
str := ''.
"Check that string is empty"
str isEmpty.
"Check that string is not empty"
str isEmpty not.
</lang>
=={{header|Standard ML}}==
|