package electrod

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

Module Libelectrod.TransfoSource

Specification of transformations.

Sourcetype ('src, 'dst) t

A transformation conforms to the following signature.

Sourceval make : string -> ('src -> 'dst) -> ('src, 'dst) t

Constructor. The first parameter is the name: it must be unique in the whole program.

Sourceval name : ('src, 'dst) t -> string

Retrieves the name...

Sourceval run : ('src, 'dst) t -> 'src -> 'dst

Runs a transformation

Sourceval fby : ('a, 'b) t -> ('b, 'c) t -> ('a, 'c) t

Returns the composition (left-to-right) of two transformations.

Sourceval identity : ('a, 'a) t

Identity transformation

Sourcetype ('src, 'dst) tlist

A list of transformations with given source and target type.

Sourceval tlist : ('src, 'dst) t list -> ('src, 'dst) tlist

Creates a list of transformations with a default one .

Sourceval get_exn : ('src, 'dst) tlist -> string -> ('src, 'dst) t

Retrieves a transformation. May raise Not_found.

OCaml

Innovation. Community. Security.