package containers

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
type (!'a, !'s, !'b) t = {
  1. next : ('a, 's, 'b) automaton;
  2. mutable state : 's;
}
val create : ('a, 's, 'b) automaton -> init:'s -> ('a, 's, 'b) t
val get_state : ('a, 's, 'b) t -> ('a, 's, 's) t
val cur_state : ('a, 's, 'b) t -> 's
val next : ('a, 's, 'b) t -> 'a -> 'b option
val copy : ('a, 's, 'b) t -> ('a, 's, 'b) t
val scan : ('a, 's, 'b) t -> ('a, 's * 'b list, 'b list) t
val nest : ('a, 's, 'b) t list -> ('a, 's list, 'b list) t
val append : ('a, 's1, 'b) t -> ('a, 's2, 'b) t -> ('a, ('s1, 's2) append_state, 'b) t
val iter : ('a -> unit) -> (unit, 'b, 'a) t -> unit
module Int : sig ... end
module List : sig ... end
OCaml

Innovation. Community. Security.