package core_kernel

  1. Overview
  2. Docs
Industrial strength alternative to OCaml's standard library

Install

Dune Dependency

Authors

Maintainers

Sources

v0.12.2.tar.gz
sha256=96750d5b097cdfcdf00a463e2c1083e3c62c1d92987a0751ca2cda3a1e09241f
md5=afc0271c35437c883b3c75fb821fe470

doc/core_kernel.weak_array/Weak_array/index.html

Module Weak_array

Module for dealing with weak pointers, i.e., pointers that don't prevent garbage collection of what they point to.

This module is like the OCaml standard library module of the same name, except that it requires that the values in the weak set are heap blocks.

type 'a t
val sexp_of_t : ('a -> Ppx_sexp_conv_lib.Sexp.t) -> 'a t -> Ppx_sexp_conv_lib.Sexp.t
val create : len:int -> _ t
val length : _ t -> int
val set : 'a t -> int -> 'a Core_kernel.Heap_block.t option -> unit
val get : 'a t -> int -> 'a Core_kernel.Heap_block.t option
val is_some : _ t -> int -> bool
val is_none : _ t -> int -> bool
OCaml

Innovation. Community. Security.