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.98 tracks/ocaml/exercises/react/react.mli
trackler-2.2.1.97 tracks/ocaml/exercises/react/react.mli
trackler-2.2.1.96 tracks/ocaml/exercises/react/react.mli
trackler-2.2.1.95 tracks/ocaml/exercises/react/react.mli
trackler-2.2.1.94 tracks/ocaml/exercises/react/react.mli
trackler-2.2.1.93 tracks/ocaml/exercises/react/react.mli
trackler-2.2.1.92 tracks/ocaml/exercises/react/react.mli
trackler-2.2.1.91 tracks/ocaml/exercises/react/react.mli
trackler-2.2.1.90 tracks/ocaml/exercises/react/react.mli
trackler-2.2.1.89 tracks/ocaml/exercises/react/react.mli
trackler-2.2.1.88 tracks/ocaml/exercises/react/react.mli
trackler-2.2.1.87 tracks/ocaml/exercises/react/react.mli
trackler-2.2.1.86 tracks/ocaml/exercises/react/react.mli
trackler-2.2.1.85 tracks/ocaml/exercises/react/react.mli
trackler-2.2.1.84 tracks/ocaml/exercises/react/react.mli
trackler-2.2.1.83 tracks/ocaml/exercises/react/react.mli
trackler-2.2.1.82 tracks/ocaml/exercises/react/react.mli
trackler-2.2.1.81 tracks/ocaml/exercises/react/react.mli
trackler-2.2.1.80 tracks/ocaml/exercises/react/react.mli
trackler-2.2.1.79 tracks/ocaml/exercises/react/react.mli