module Index:sig..end
i in a list (with
indices starting from 0).
While it is sometimes necessary to perform these
operations on lists (hence their inclusion here), the
functions were moved to an inner module to prevent
their overuse: all functions work in O(n) time. You
might prefer to use Array or DynArray for constant
time indexed element access.
val index_of : 'a BatRefList.t -> 'a -> intNot_found if no element was foundval index : ('a -> bool) -> 'a BatRefList.t -> intNot_found if no element was foundval at_index : 'a BatRefList.t -> int -> 'aInvalid_index if the index is outside 0 ; length-1val set : 'a BatRefList.t -> int -> 'a -> unitInvalid_index if the index is outside 0 ; length-1val remove_at : 'a BatRefList.t -> int -> unitInvalid_index if the index is outside 0 ; length-1