module Idx: sig
.. end
val mapi : (int -> 'a -> 'b) -> 'a CCList.t -> 'b CCList.t
val iteri : (int -> 'a -> unit) -> 'a CCList.t -> unit
val foldi : ('b -> int -> 'a -> 'b) -> 'b -> 'a CCList.t -> 'b
Fold on list, with index
val get : 'a CCList.t -> int -> 'a option
val get_exn : 'a CCList.t -> int -> 'a
Get the i-th element, or
Raises Not_found
if the index is invalid
val set : 'a CCList.t -> int -> 'a -> 'a CCList.t
Set i-th element (removes the old one), or does nothing if
index is too high
val insert : 'a CCList.t -> int -> 'a -> 'a CCList.t
Insert at i-th position, between the two existing elements. If the
index is too high, append at the end of the list
val remove : 'a CCList.t -> int -> 'a CCList.t
Remove element at given index. Does nothing if the index is
too high.