package core_kernel

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

Install

Dune Dependency

Authors

Maintainers

Sources

core_kernel-v0.16.0.tar.gz
sha256=e37370bad978cfb71fdaf2b1a25ab1506b98ef0b91e0dbd189ffd9d853245ce2

doc/core_kernel.vec/Vec/Make/Inplace/index.html

Module Make.InplaceSource

Sourceval sub : 'a t -> pos:M.t -> len:int -> unit

sub is like Blit.sub, but modifies the vec in place.

Sourceval take_while : 'a t -> f:('a -> bool) -> unit

take_while t ~f shortens the vec in place to the longest prefix of t for which f is true.

Sourceval filter : 'a t -> f:('a -> bool) -> unit

Remove all elements from t that don't satisfy f. Shortens the vec in place.

Sourceval map : 'a t -> f:('a -> 'a) -> unit

Modifies a vec in place, applying f to every element of the vec.

Sourceval mapi : 'a t -> f:(M.t -> 'a -> 'a) -> unit

Same as map, but f also takes the index.

OCaml

Innovation. Community. Security.