package batteries

  1. Overview
  2. Docs
A community-maintained standard library extension

Install

dune-project
 Dependency

Authors

Maintainers

Sources

v3.1.0.tar.gz
sha256=669181f5962b2430562ea56f08c7e95c9fe39ff29973a256007cec0ef01a2d75
md5=09a28af1c3b95c03d7863756dd4891fe

doc/batteries/BatInterfaces/index.html

Module BatInterfaces

Common signatures for data structures.

module type Mappable = sig ... end

A signature for data structures which have a map : ('a -> 'b) -> ('a t -> 'b t) operation.

module type OrderedType = sig ... end

Monads are a design pattern which may be used to enforce strong functional or non-functional constraints on the manipulation of resources, while remaining in the world of functional programming. For instance, monads may serve to implement approximations of a types-and-effects type system, to enforce functional use of arrays or other mutable data structures, or to enforce the fact that only files opened for writing may be actually used for writing.

For more information on monads, see A Monad Tutorial for Ocaml.

This definition is compatible with the standard syntax extension for monads. For more information, see the documentation of pa_monad.

  • author David Teller
module type Monad = sig ... end

Signature for monads

OCaml

Innovation. Community. Security.