Batteries user guide : BatEnum.Enumerable

# Module type BatEnum.Enumerable

    module type Enumerable = sig .. end

A signature for data structures which may be converted to and from `enum`.

If you create a new data structure, you should make it compatible with `Enumerable`.

    type 'a enumerable

The data structure, e.g. `'a List.t`

    val enum : 'a enumerable -> 'a BatEnum.t

Return an enumeration of the elements of the data structure

    val of_enum : 'a BatEnum.t -> 'a enumerable

Build a data structure from an enumeration