package react

  1. Overview
  2. Docs
type 'a t = 'a event
val never : 'a event
val create : unit -> 'a event * ('a -> unit)
val retain : 'a event -> (unit -> unit) -> [ `R of unit -> unit ]
val stop : 'a event -> unit
val equal : 'a event -> 'a event -> bool
val trace : ?iff:bool signal -> ('a -> unit) -> 'a event -> 'a event
val once : 'a event -> 'a event
val drop_once : 'a event -> 'a event
val app : ('a -> 'b) event -> 'a event -> 'b event
val map : ('a -> 'b) -> 'a event -> 'b event
val stamp : 'b event -> 'a -> 'a event
val filter : ('a -> bool) -> 'a event -> 'a event
val fmap : ('a -> 'b option) -> 'a event -> 'b event
val diff : ('a -> 'a -> 'b) -> 'a event -> 'b event
val changes : ?eq:('a -> 'a -> bool) -> 'a event -> 'a event
val when_ : bool signal -> 'a event -> 'a event
val dismiss : 'b event -> 'a event -> 'a event
val until : 'a event -> 'b event -> 'b event
val accum : ('a -> 'a) event -> 'a -> 'a event
val fold : ('a -> 'b -> 'a) -> 'a -> 'b event -> 'a event
val select : 'a event list -> 'a event
val merge : ('a -> 'b -> 'a) -> 'a -> 'b event list -> 'a event
val switch : 'a event -> 'a event event -> 'a event
val fix : ('a event -> 'a event * 'b) -> 'b
OCaml

Innovation. Community. Security.