RosettaCodeData/Task/Empty-string/Standard-ML/empty-string.ml

7 lines
138 B
OCaml
Raw Permalink Normal View History

2015-02-20 00:35:01 -05:00
(* Assign empty string to a variable *)
val s = ""
(* Check that a string is empty*)
s = ""
(* Check that a string is nonempty *)
s <> ""