package prbnmcn-basic-structures

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

Module Monad.IdentitySource

Sourcetype 'a t = 'a

'a t is the type of computations of type 'a

Sourcetype 'a res = 'a

'a res is the outcome of running a computation of type 'a

Sourceval return : 'a -> 'a t

return x injects a value x as a computation

Sourceval bind : 'a t -> ('a -> 'b t) -> 'b t

Monadic bind

Sourceval map : 'a t -> ('a -> 'b) -> 'b t

Functorial map

Sourceval run : 'a t -> 'a res

Running a monadic computation

Sourcemodule Infix : sig ... end
OCaml

Innovation. Community. Security.