package kappa-library

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

Module SetMap.ProjSource

Parameters

module A : S
module B : S

Signature

Sourcetype elt_a = A.elt
Sourcetype elt_b = B.elt
Sourcetype 'a map_a = 'a A.Map.t
Sourcetype 'a map_b = 'a B.Map.t
Sourcetype set_a
Sourcetype set_b
Sourceval proj_map : (elt_a -> elt_b) -> 'b -> ('b -> 'a -> 'b) -> 'a map_a -> 'b map_b

proj_map f init merge map is a map mapping each element b to the result of the itteration of the function merge over the image in map of the element a in f such that f(a)=b, starting with the element init.

Sourceval proj_map_monadic : 'parameters -> 'exceptions_caught_and_uncaught -> (elt_a -> elt_b) -> 'b -> ('parameters -> 'exceptions_caught_and_uncaught -> 'b -> 'a -> 'exceptions_caught_and_uncaught * 'b) -> 'a map_a -> 'exceptions_caught_and_uncaught * 'b map_b
Sourceval proj_set : (elt_a -> elt_b) -> set_a -> set_b

proj_set f set is the set {f(a) | a\in S}

Sourceval proj_set_monadic : 'parameters -> 'exceptions_caught_and_uncaught -> ('parameters -> 'exceptions_caught_and_uncaught -> elt_a -> 'exceptions_caught_and_uncaught * elt_b) -> set_a -> 'exceptions_caught_and_uncaught * set_b
Sourceval partition_set : (elt_a -> elt_b) -> set_a -> set_a map_b

partition_set f set is the map mapping any element b with an antecedent for f in the set set, into the set of its antecedents, ie to the set {a\in set | f(a)=b}.

Sourceval partition_set_monadic : 'parameters -> 'exceptions_caught_and_uncaught -> ('parameters -> 'exceptions_caught_and_uncaught -> elt_a -> 'exceptions_caught_and_uncaught * elt_b) -> set_a -> 'exceptions_caught_and_uncaught * set_a map_b
OCaml

Innovation. Community. Security.