package reactiveData

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
type !'a p =
  1. | I of int * 'a
  2. | R of int
  3. | U of int * 'a
  4. | X of int * int
type !'a data = 'a list
type !'a patch = 'a p list
type !'a msg =
  1. | Patch of 'a patch
  2. | Set of 'a data
type 'a handle
type 'a t
val empty : 'a t
val make : 'a data -> 'a t * 'a handle
val make_from : 'a data -> 'a msg React.E.t -> 'a t
val const : 'a data -> 'a t
val patch : 'a handle -> 'a patch -> unit
val set : 'a handle -> 'a data -> unit
val map_msg : ('a -> 'b) -> 'a msg -> 'b msg
val map : ('a -> 'b) -> 'a t -> 'b t
val value : 'a t -> 'a data
val fold : ('a -> 'b msg -> 'a) -> 'b t -> 'a -> 'a React.signal
val value_s : 'a t -> 'a data React.S.t
val event : 'a t -> 'a msg React.E.t
val nil : 'a t
val append : 'a -> 'a handle -> unit
val cons : 'a -> 'a handle -> unit
val insert : 'a -> int -> 'a handle -> unit
val remove : int -> 'a handle -> unit
val update : 'a -> int -> 'a handle -> unit
val move : int -> int -> 'a handle -> unit
val singleton : 'a -> 'a t
val singleton_s : 'a React.S.t -> 'a t
val concat : 'a t -> 'a t -> 'a t
val rev : 'a t -> 'a t
val sort : ('a -> 'a -> int) -> 'a t -> [ `Not_implemented ]
val filter : ('a -> unit) -> 'a t -> [ `Not_implemented ]
OCaml

Innovation. Community. Security.