package batteries
Install
Dune Dependency
Authors
Maintainers
Sources
md5=d3d16ffc960e832a1c0e21b7123194e9
sha512=36c8561079aa9fefc864c2f03bd8ae20aa05987bb67e7a9beac3ab4f440dbf7d44f141c172b05fddb1a5b618fc55a27962bb45fc39bd7b3a15d56e0ed3ff3870
doc/batteries.unthreaded/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.
module type Monad = sig ... end
Signature for monads