package monads

  1. Overview
  2. Docs
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source

Module Make2.Pair

The pair interface lifted into the monad.

val fst : ('a * 'b, 'e) M.t -> ('a, 'e) M.t

fst (x,y) computes x

val snd : ('a * 'b, 'e) M.t -> ('b, 'e) M.t

snd (x,y) computes y

OCaml

Innovation. Community. Security.