Empty string: Difference between revisions
Content added Content deleted
(Added Standard ML section) |
No edit summary |
||
Line 983: | Line 983: | ||
# check that string is not empty |
# check that string is not empty |
||
s <> ""</lang> |
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}}== |
=={{header|Standard ML}}== |