RosettaCodeData/Task/Empty-string/Standard-ML/empty-string.ml
2023-07-01 13:44:08 -04:00

6 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 <> ""