Batteries user guide : Batteries.Tuple5

# Module Batteries.Tuple5

    module Tuple5: BatTuple.Tuple5

    type ('a, 'b, 'c, 'd, 'e) t = 'a * 'b * 'c * 'd * 'e

    val make : 'a -> 'b -> 'c -> 'd -> 'e -> 'a * 'b * 'c * 'd * 'e

    val first : 'a * 'b * 'c * 'd * 'e -> 'a

    val second : 'a * 'b * 'c * 'd * 'e -> 'b

    val third : 'a * 'b * 'c * 'd * 'e -> 'c

    val fourth : 'a * 'b * 'c * 'd * 'e -> 'd

    val fifth : 'a * 'b * 'c * 'd * 'e -> 'e

    val get12 : 'a * 'b * 'c * 'd * 'e -> 'a * 'b

    val get13 : 'a * 'b * 'c * 'd * 'e -> 'a * 'c

    val get14 : 'a * 'b * 'c * 'd * 'e -> 'a * 'd

    val get15 : 'a * 'b * 'c * 'd * 'e -> 'a * 'e

    val get23 : 'a * 'b * 'c * 'd * 'e -> 'b * 'c

    val get24 : 'a * 'b * 'c * 'd * 'e -> 'b * 'd

    val get25 : 'a * 'b * 'c * 'd * 'e -> 'b * 'e

    val get34 : 'a * 'b * 'c * 'd * 'e -> 'c * 'd

    val get35 : 'a * 'b * 'c * 'd * 'e -> 'c * 'e

    val get45 : 'a * 'b * 'c * 'd * 'e -> 'd * 'e

    val get123 : 'a * 'b * 'c * 'd * 'e -> 'a * 'b * 'c

    val get124 : 'a * 'b * 'c * 'd * 'e -> 'a * 'b * 'd

    val get125 : 'a * 'b * 'c * 'd * 'e -> 'a * 'b * 'e

    val get134 : 'a * 'b * 'c * 'd * 'e -> 'a * 'c * 'd

    val get135 : 'a * 'b * 'c * 'd * 'e -> 'a * 'c * 'e

    val get145 : 'a * 'b * 'c * 'd * 'e -> 'a * 'd * 'e

    val get234 : 'a * 'b * 'c * 'd * 'e -> 'b * 'c * 'd

    val get235 : 'a * 'b * 'c * 'd * 'e -> 'b * 'c * 'e

    val get245 : 'a * 'b * 'c * 'd * 'e -> 'b * 'd * 'e

    val get345 : 'a * 'b * 'c * 'd * 'e -> 'c * 'd * 'e

    val get1234 : 'a * 'b * 'c * 'd * 'e -> 'a * 'b * 'c * 'd

    val get1235 : 'a * 'b * 'c * 'd * 'e -> 'a * 'b * 'c * 'e

    val get1245 : 'a * 'b * 'c * 'd * 'e -> 'a * 'b * 'd * 'e

    val get1345 : 'a * 'b * 'c * 'd * 'e -> 'a * 'c * 'd * 'e

    val get2345 : 'a * 'b * 'c * 'd * 'e -> 'b * 'c * 'd * 'e

    val map : ('a -> 'f) ->
           ('b -> 'g) ->
           ('c -> 'h) ->
           ('d -> 'i) -> ('e -> 'j) -> 'a * 'b * 'c * 'd * 'e -> 'f * 'g * 'h * 'i * 'j

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

Like `BatTuple.Tuple5.map` but specialized for tuples with elements of the same type.

`mapn f` is equivalent to `map f f f f f`.

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

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

    val map3 : ('c -> 'f) -> 'a * 'b * 'c * 'd * 'e -> 'a * 'b * 'f * 'd * 'e

    val map4 : ('d -> 'f) -> 'a * 'b * 'c * 'd * 'e -> 'a * 'b * 'c * 'f * 'e

    val map5 : ('e -> 'f) -> 'a * 'b * 'c * 'd * 'e -> 'a * 'b * 'c * 'd * 'f

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

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

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

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

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

    val print : ?first:string ->
           ?sep:string ->
           ?last:string ->
           ('o BatIO.output -> 'a -> unit) ->
           ('o BatIO.output -> 'b -> unit) ->
           ('o BatIO.output -> 'c -> unit) ->
           ('o BatIO.output -> 'd -> unit) ->
           ('o BatIO.output -> 'e -> unit) ->
           'o BatIO.output -> 'a * 'b * 'c * 'd * 'e -> unit

    val printn : ?first:string ->
           ?sep:string ->
           ?last:string ->
           ('o BatIO.output -> 'a -> unit) ->
           'o BatIO.output -> 'a * 'a * 'a * 'a * 'a -> unit

    val compare : ?cmp1:('a -> 'a -> int) ->
           ?cmp2:('b -> 'b -> int) ->
           ?cmp3:('c -> 'c -> int) ->
           ?cmp4:('d -> 'd -> int) ->
           ?cmp5:('e -> 'e -> int) ->
           'a * 'b * 'c * 'd * 'e -> 'a * 'b * 'c * 'd * 'e -> int

    include BatEnum.Enumerable

    val eq : 'a BatOrd.eq ->
           'b BatOrd.eq ->
           'c BatOrd.eq ->
           'd BatOrd.eq -> 'e BatOrd.eq -> ('a * 'b * 'c * 'd * 'e) BatOrd.eq

    val ord : 'a BatOrd.ord ->
           'b BatOrd.ord ->
           'c BatOrd.ord ->
           'd BatOrd.ord -> 'e BatOrd.ord -> ('a * 'b * 'c * 'd * 'e) BatOrd.ord

    val comp : 'a BatOrd.comp ->
           'b BatOrd.comp ->
           'c BatOrd.comp ->
           'd BatOrd.comp -> 'e BatOrd.comp -> ('a * 'b * 'c * 'd * 'e) BatOrd.comp

    module Eq: functor (T1 : BatOrd.Eq) -> functor (T2 : BatOrd.Eq) -> functor (T3 : BatOrd.Eq) -> functor (T4 : BatOrd.Eq) -> functor (T5 : BatOrd.Eq) -> Eq  with type t = T1.t * T2.t * T3.t * T4.t * T5.t

    module Ord: functor (T1 : BatOrd.Ord) -> functor (T2 : BatOrd.Ord) -> functor (T3 : BatOrd.Ord) -> functor (T4 : BatOrd.Ord) -> functor (T5 : BatOrd.Ord) -> Ord  with type t = T1.t * T2.t * T3.t * T4.t * T5.t

    module Comp: functor (T1 : BatOrd.Comp) -> functor (T2 : BatOrd.Comp) -> functor (T3 : BatOrd.Comp) -> functor (T4 : BatOrd.Comp) -> functor (T5 : BatOrd.Comp) -> Comp  with type t = T1.t * T2.t * T3.t * T4.t * T5.t