Empty string: Difference between revisions

Added Standard ML section
(Add Dart)
(Added Standard ML section)
Line 982:
 
# 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>
 
Anonymous user