package core_kernel

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

Install

Dune Dependency

Authors

Maintainers

Sources

v0.17.0.tar.gz
sha256=fd2b8c6715794df7a810a62b226f53720f211cd344b4afc9fab0498796d6b466

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

Module Vec.InplaceSource

Sourceval sub : 'a t -> pos:int -> 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:(int -> 'a -> 'a) -> unit

Same as map, but f also takes the index.

OCaml

Innovation. Community. Security.