Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

pair

Lib.pair : 'a -> 'b -> 'a * 'b

Makes two values into a pair.

pair x y returns (x, y).

Failure

Never fails.

See also

Lib.rpair, Lib.swap, Lib.fst, Lib.snd, Lib.pair_of_list, Lib.triple, Lib.quadruple, Lib.curry, Lib.uncurry