package colibri2

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

Useful functions

val const : 'a -> 'b -> 'a
val const2 : 'a -> 'b -> 'c -> 'a
val const3 : 'a -> 'b -> 'c -> 'd -> 'a
val flip : ('a -> 'b -> 'c) -> 'b -> 'a -> 'c
val foldi : ('a -> int -> 'a) -> 'a -> int -> int -> 'a
val mapi : (int -> 'a) -> int -> int -> 'a list
val iterf : (float -> unit) -> float -> float -> float -> unit

iterf f min max step

exception FoldSkip
val all_fn : ('a -> bool) -> 'b -> 'a -> bool
val any_fn : ('a -> bool) -> 'b -> 'a -> bool
val ffalse : 'a -> bool

ffalse constant function false

val ttrue : 'a -> bool

ttrue constant function true

val get_counter : unit -> (unit -> int) * (unit -> unit)

a strictly increasing counter (next_tag,incr_tag)

OCaml

Innovation. Community. Security.