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

7 lines
138 B
OCaml
Raw Permalink Normal View History

2023-07-01 11:58:00 -04:00
(* Assign empty string to a variable *)
val s = ""
(* Check that a string is empty*)
s = ""
(* Check that a string is nonempty *)
s <> ""