Empty string: Difference between revisions
Content added Content deleted
(Add Dart) |
(Added Standard ML section) |
||
Line 982: | Line 982: | ||
# check that string is not empty |
# check that string is not empty |
||
s <> ""</lang> |
|||
=={{header|Standard ML}}== |
|||
<lang sml>(* Assign empty string to a variable *) |
|||
val s = "" |
|||
(* Check that a string is empty*) |
|||
s = "" |
|||
(* Check that a string is nonempty *) |
|||
s <> ""</lang> |
s <> ""</lang> |
||