OCaml. , , stdlib. , , . : Core, Batteries, extlib, .
OCaml stdlib , . , OCaml . , , . Janestreet OCaml Core. , stdlib. , , ( , , ).
- . . . , . Caml, stdlib.
. Core ocaml core documentation, . , . Std, , , , , (. __init__.py). String. , Core_string (module String : Core_string). , . , + , , , , . , , , . , , Core_string module, et voila. , . , , , (sic) . . , , OCaml, emacs, merlin, ocp-index, ocamlspot. , emacs vim, .
, , , , . , mli. , mli OCaml. , String.strip, emacs Core_string.mli :
(* Warning: the following strip functions have copy-on-write semantics (i.e. they may
return the same string passed in) *)
(** [lstrip ?drop s] returns a string with consecutive chars satisfying [drop] (by default
white space, e.g. tabs, spaces, newlines, and carriage returns) stripped from the
beginning of [s]. *)
val lstrip : ?drop:(char -> bool) -> t -> t
(** [rstrip ?drop s] returns a string with consecutive chars satisfying [drop] (by default
white space, e.g. tabs, spaces, newlines, and carriage returns) stripped from the end
of [s]. *)
val rstrip : ?drop:(char -> bool) -> t -> t
(** [strip ?drop s] returns a string with consecutive chars satisfying [drop] (by default
white space, e.g. tabs, spaces, newlines, and carriage returns) stripped from the
beginning and end of [s]. *)
val strip : ?drop:(char -> bool) -> t -> t
, imo. , , .
P.S. OCaml. . .