package bonsai

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
module Id : sig ... end
type 'a t = {
  1. contents : 'a Id.Map.t;
  2. append : unit Bonsai.For_open.Effect.t;
  3. set_length : int -> unit Bonsai.For_open.Effect.t;
  4. remove : Id.t -> unit Bonsai.For_open.Effect.t;
}

Given a computation, builds a new computation that can hold a dynamic number of the wrapped computation.

val component' : 'a Bonsai.For_open.Computation.t -> wrap_remove:('a -> unit Bonsai.For_open.Effect.t -> 'b) -> 'b t Bonsai.For_open.Computation.t

Like component, but with the power to extend the result of the input component with an event that removes itself.

OCaml

Innovation. Community. Security.