BatTuple.Tuple2

# Module BatTuple.Tuple2

    module Tuple2: sig .. end

Pairs. Some of the functions here are also exposed in `Pervasives`, as documented below.
Author(s): Edgar Friendly, Ashish Agarwal

    type ('a, 'b) t = 'a * 'b

    val first : 'a * 'b -> 'a

Equivalent to `Pervasives.fst`.

    val second : 'a * 'b -> 'b

Equivalent to `Pervasives.snd`.

    val map : ('a -> 'b) -> 'a mappable -> 'b mappable

    val mapn : ('a -> 'b) -> ('c -> 'd) -> 'a * 'c -> 'b * 'd

Equivalent to `BatPervasives.( *** )`.

    val map1 : ('a -> 'b) -> 'a * 'c -> 'b * 'c

Equivalent to `BatPervasives.first`.

    val map2 : ('a -> 'b) -> 'c * 'a -> 'c * 'b

Equivalent to `BatPervasives.second`.

    val curry : ('a * 'b -> 'c) -> 'a -> 'b -> 'c

    val uncurry : ('a -> 'b -> 'c) -> 'a * 'b -> 'c

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

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

Raises `Failure` if enum does not contain at least 2 elements.

    val printn : ('a BatIO.output -> 'b -> unit) ->
           ('a BatIO.output -> 'c -> unit) -> 'a BatIO.output -> 'b * 'c -> unit

    val print : ('a BatIO.output -> 'b -> unit) -> 'a BatIO.output -> 'b * 'b -> unit

    val compare : ?cmp1:('a -> 'a -> int) ->
           ?cmp2:('b -> 'b -> int) -> 'a * 'b -> 'a * 'b -> int

    include BatEnum.Enumerable

    include BatInterfaces.Mappable