Sha256: 8f6deada286761b3a3a8da1c22cbf62d197fc7320b4c4abb02c91e92e8adea8e

Contents?: true

Size: 1.13 KB

Versions: 216

Compression:

Stored size: 1.13 KB

Contents

type 'a cell
type callback_id

(* Creates a cell that has a value which does not depend on the value of any other cell. *)
val create_input_cell : value: 'a -> eq: ('a -> 'a -> bool) -> 'a cell

val value_of : 'a cell -> 'a

(* Sets the value of an input cell. Setting the value of a compute cell is not allowed. *)
val set_value : 'a cell -> 'a -> unit

(* Creates a computed cell with one other cell as input, the value of this cell is the value of the input
   with the function f applied to it.
 *)
val create_compute_cell_1 : 'a cell -> f: ('a -> 'a) -> eq: ('a -> 'a -> bool) -> 'a cell

(* Creates a computed cell with two other cells as input, the value of this cell is the value of the inputs
   with the function f applied to them.
 *)
val create_compute_cell_2 : 'a cell -> 'a cell -> f: ('a -> 'a -> 'a) -> eq: ('a -> 'a -> bool) -> 'a cell

(* After this is called, the callback will be called whenever the cell's value is changed. *)
val add_callback : 'a cell -> k: ('a -> unit) -> callback_id

(* After this is called, the callback will be not called on changes to this cell any more. *)
val remove_callback : 'a cell -> callback_id -> unit

Version data entries

216 entries across 216 versions & 1 rubygems

Version Path
trackler-2.2.1.180 tracks/ocaml/exercises/react/react.mli
trackler-2.2.1.179 tracks/ocaml/exercises/react/react.mli
trackler-2.2.1.178 tracks/ocaml/exercises/react/react.mli
trackler-2.2.1.177 tracks/ocaml/exercises/react/react.mli
trackler-2.2.1.176 tracks/ocaml/exercises/react/react.mli
trackler-2.2.1.175 tracks/ocaml/exercises/react/react.mli
trackler-2.2.1.174 tracks/ocaml/exercises/react/react.mli
trackler-2.2.1.173 tracks/ocaml/exercises/react/react.mli
trackler-2.2.1.172 tracks/ocaml/exercises/react/react.mli
trackler-2.2.1.171 tracks/ocaml/exercises/react/react.mli
trackler-2.2.1.170 tracks/ocaml/exercises/react/react.mli
trackler-2.2.1.169 tracks/ocaml/exercises/react/react.mli
trackler-2.2.1.167 tracks/ocaml/exercises/react/react.mli
trackler-2.2.1.166 tracks/ocaml/exercises/react/react.mli
trackler-2.2.1.165 tracks/ocaml/exercises/react/react.mli
trackler-2.2.1.164 tracks/ocaml/exercises/react/react.mli
trackler-2.2.1.163 tracks/ocaml/exercises/react/react.mli
trackler-2.2.1.162 tracks/ocaml/exercises/react/react.mli
trackler-2.2.1.161 tracks/ocaml/exercises/react/react.mli
trackler-2.2.1.160 tracks/ocaml/exercises/react/react.mli