package lascar

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

Several useful types and functions

type ('a, 'b) either =
  1. | Fst of 'a
  2. | Snd of 'b
  3. | Both of 'a * 'b
val log2 : int -> int
val time_of_day : unit -> string
val max : 'a -> 'a -> 'a
val min : 'a -> 'a -> 'a
val iter_fix : ('a -> 'a -> bool) -> ('a -> 'a) -> 'a -> 'a

iter_fix eq f x iterates f, starting with x, until idempotence, i.e. computes f (f (f ... f(x)...)) until the condition f(x)=x is met. Equality test is performed with the eq argument

val append_file : string -> string -> unit

append_file f s appends s to file f

val space_chars : char list -> string -> string

space_chars cs s replaces each character c of s listed in cs by " c ". This function is used to properly handle unary operators when parsing !Fsm_exprs

OCaml

Innovation. Community. Security.