package react

  1. Overview
  2. Docs
type 'a t = 'a signal
val const : 'a -> 'a signal
val create : ?eq:('a -> 'a -> bool) -> 'a -> 'a signal * ('a -> unit)
val value : 'a signal -> 'a
val retain : 'a signal -> (unit -> unit) -> [ `R of unit -> unit ]
val eq_fun : 'a signal -> ('a -> 'a -> bool) option
val stop : 'a signal -> unit
val equal : ?eq:('a -> 'a -> bool) -> 'a signal -> 'a signal -> bool
val trace : ?iff:bool t -> ('a -> unit) -> 'a signal -> 'a signal
val hold : ?eq:('a -> 'a -> bool) -> 'a -> 'a event -> 'a signal
val app : ?eq:('b -> 'b -> bool) -> ('a -> 'b) signal -> 'a signal -> 'b signal
val map : ?eq:('b -> 'b -> bool) -> ('a -> 'b) -> 'a signal -> 'b signal
val filter : ?eq:('a -> 'a -> bool) -> ('a -> bool) -> 'a -> 'a signal -> 'a signal
val fmap : ?eq:('b -> 'b -> bool) -> ('a -> 'b option) -> 'b -> 'a signal -> 'b signal
val diff : ('a -> 'a -> 'b) -> 'a signal -> 'b event
val changes : 'a signal -> 'a event
val sample : ('b -> 'a -> 'c) -> 'b event -> 'a signal -> 'c event
val when_ : ?eq:('a -> 'a -> bool) -> bool signal -> 'a -> 'a signal -> 'a signal
val dismiss : ?eq:('a -> 'a -> bool) -> 'b event -> 'a -> 'a signal -> 'a signal
val accum : ?eq:('a -> 'a -> bool) -> ('a -> 'a) event -> 'a -> 'a signal
val fold : ?eq:('a -> 'a -> bool) -> ('a -> 'b -> 'a) -> 'a -> 'b event -> 'a signal
val merge : ?eq:('a -> 'a -> bool) -> ('a -> 'b -> 'a) -> 'a -> 'b signal list -> 'a signal
val switch : ?eq:('a -> 'a -> bool) -> 'a signal -> 'a signal event -> 'a signal
val fix : ?eq:('a -> 'a -> bool) -> 'a -> ('a signal -> 'a signal * 'b) -> 'b
val l1 : ?eq:('b -> 'b -> bool) -> ('a -> 'b) -> 'a signal -> 'b signal
val l2 : ?eq:('c -> 'c -> bool) -> ('a -> 'b -> 'c) -> 'a signal -> 'b signal -> 'c signal
val l3 : ?eq:('d -> 'd -> bool) -> ('a -> 'b -> 'c -> 'd) -> 'a signal -> 'b signal -> 'c signal -> 'd signal
val l4 : ?eq:('e -> 'e -> bool) -> ('a -> 'b -> 'c -> 'd -> 'e) -> 'a signal -> 'b signal -> 'c signal -> 'd signal -> 'e signal
val l5 : ?eq:('f -> 'f -> bool) -> ('a -> 'b -> 'c -> 'd -> 'e -> 'f) -> 'a signal -> 'b signal -> 'c signal -> 'd signal -> 'e signal -> 'f signal
val l6 : ?eq:('g -> 'g -> bool) -> ('a -> 'b -> 'c -> 'd -> 'e -> 'f -> 'g) -> 'a signal -> 'b signal -> 'c signal -> 'd signal -> 'e signal -> 'f signal -> 'g signal
module Bool : sig ... end
module Int : sig ... end
module Float : sig ... end
module Pair : sig ... end
module Compare : sig ... end
module type EqType = sig ... end
module type S = sig ... end
module Make (Eq : EqType) : sig ... end
module Special : sig ... end
OCaml

Innovation. Community. Security.