Empty string: Difference between revisions

Content added Content deleted
No edit summary
Line 297: Line 297:
let s1 = ""
let s1 = ""
and s2 = "not empty" in
and s2 = "not empty" in
Printf.printf "s1 empty? %b\n" (is_string_empty s1);
Printf.printf "s1 empty? %B\n" (is_string_empty s1);
Printf.printf "s2 empty? %b\n" (is_string_empty s2);
Printf.printf "s2 empty? %B\n" (is_string_empty s2);
;;</lang>
;;</lang>