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.38 tracks/ocaml/exercises/react/react.mli
trackler-2.2.1.37 tracks/ocaml/exercises/react/react.mli
trackler-2.2.1.36 tracks/ocaml/exercises/react/react.mli
trackler-2.2.1.35 tracks/ocaml/exercises/react/react.mli
trackler-2.2.1.34 tracks/ocaml/exercises/react/react.mli
trackler-2.2.1.33 tracks/ocaml/exercises/react/react.mli
trackler-2.2.1.32 tracks/ocaml/exercises/react/react.mli
trackler-2.2.1.31 tracks/ocaml/exercises/react/react.mli
trackler-2.2.1.30 tracks/ocaml/exercises/react/react.mli
trackler-2.2.1.29 tracks/ocaml/exercises/react/react.mli
trackler-2.2.1.28 tracks/ocaml/exercises/react/react.mli
trackler-2.2.1.27 tracks/ocaml/exercises/react/react.mli
trackler-2.2.1.26 tracks/ocaml/exercises/react/react.mli
trackler-2.2.1.25 tracks/ocaml/exercises/react/react.mli
trackler-2.2.1.24 tracks/ocaml/exercises/react/react.mli
trackler-2.2.1.23 tracks/ocaml/exercises/react/react.mli
trackler-2.2.1.22 tracks/ocaml/exercises/react/react.mli
trackler-2.2.1.21 tracks/ocaml/exercises/react/react.mli
trackler-2.2.1.20 tracks/ocaml/exercises/react/react.mli
trackler-2.2.1.19 tracks/ocaml/exercises/react/react.mli