package dune-private-libs

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type

Forward declarations

type 'a t
val create : ('a -> Dyn.t) -> 'a t

create () creates a forward declaration.

val set : 'a t -> 'a -> unit

set t x set's the value that is returned by get t to x. Raise if set was already called

val get : 'a t -> 'a

get t returns the x if set comp x was called. Raise if set has not been called yet.

val peek : 'a t -> 'a option
OCaml

Innovation. Community. Security.