Search code examples
ocamlocaml-batteries

How to use functions in Ocaml Batteries?


I would like to use functions of module List of Ocaml Batteries. I have installed Batteries, and write code as follows:

open Extlib
...
Extlib.ExtList.List.remove ...

While compiling, it gives me an error Error: Unbound module Extlib. Does anyone know what happens?


Solution

  • See the documentation, particularly the getting started section, here:

    https://github.com/ocaml-batteries-team/batteries-included/wiki/

    While Batteries uses some code from Extlib, they are separate projects.