, , , , :
val global_replace : regexp -> string -> string -> string
, ";" , -
let () = print_endline("foobar")
, let, s. , , . - :
let t = (Str.global_replace( Str.regexp "begin") "" s)
, . , , true false, ( , ). , , - , . , "begin" "end" . (bool, string). (,
let b,s = isEmptyString "foobar" in
if not b then:
rest of your code
, .
- ? (, , , ). , , ( OCaml
fun
:). , , OCaml , . , .