package core_kernel

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

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.