General is an OCaml (4.02.3+) general purpose library. It adds rich functionality to built-in and basic OCaml types.

It’s licensed under the MIT license. It’s available on OPAM, its documentation and its source code are on GitHub.

Questions? Remarks? Bugs? Want to contribute? Open an issue!

Quick start

Install from OPAM:

$ opam install General

Launch utop:

$ utop -require General


open General.Abbr;;

And use:

["a"; "b"; "c"; "d"] |> StrLi.concat ~sep:", "
-: string = "a, b, c, d"

Indices and tables