package core_kernel

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
val sub : 'a t -> pos:M.t -> len:int -> unit

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

val 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.

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

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

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

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

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

Same as map, but f also takes the index.