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

7 lines
138 B
OCaml

(* Assign empty string to a variable *)
val s = ""
(* Check that a string is empty*)
s = ""
(* Check that a string is nonempty *)
s <> ""