package monads
Module Make.Pair
The pair interface lifted into the monad.
val fst : ('a * 'b) T1(T)(M).t -> 'a T1(T)(M).tfst (x,y) computes x
val snd : ('a * 'b) T1(T)(M).t -> 'b T1(T)(M).tsnd (x,y) computes y
Make.PairThe pair interface lifted into the monad.
val fst : ('a * 'b) T1(T)(M).t -> 'a T1(T)(M).tfst (x,y) computes x
val snd : ('a * 'b) T1(T)(M).t -> 'b T1(T)(M).tsnd (x,y) computes y