module BatPair: sig
.. end
Functions for pairs of values
Author(s): Edgar Friendly
type ('a, 'b)
t = 'a * 'b
val map : ('a -> 'b) -> 'a * 'a -> 'b * 'b
map a function across both values in a pair
val compare : ?c1:('a -> 'a -> int) -> ?c2:('b -> 'b -> int) -> 'a * 'b -> 'a * 'b -> int
Compare two pairs in lexicographic order, possibly using custom comparators for the two fields
val enum : 'a * 'a -> 'a BatEnum.t
builds a two-element enum of a pair
val of_enum : 'a BatEnum.t -> 'a * 'a
builds a pair out of the first two values of an enum. Raises Failure
if insufficient elements
val print : ('a BatIO.output -> 'b -> unit) ->
('a BatIO.output -> 'c -> unit) -> 'a BatIO.output -> 'b * 'c -> unit
Prints a pair using given printing functions