359 {
360
365
381}
ident reduce(const Array *self, Reducer reducer, ident accumulator, ident data)
ident interface
The interface of the Class.
void sort(MutableArray *self, Comparator comparator)
Sorts this MutableArray in place using comparator.
_Bool isEqual(const Object *self, const Object *other)
Tests equality of the other Object.
int hash(const Object *self)
ident findElement(const Vector *self, Predicate predicate, ident data)
void addElement(Vector *self, const ident element)
Adds the specified element to this Vector.
void resize(Vector *self, size_t capacity)
Resizes this Vector to the specified capacity.
Vector * vectorWithSize(size_t size)
Creates a new Vector with the specified element size.
Vector * vectorWithElements(size_t size, size_t count, ident elements)
Creates a new Vector with the specified elements.
Vector * initWithElements(Vector *self, size_t size, size_t count, ident elements)
Initializes this Vector with the specified elements.
Vector * initWithSize(Vector *self, size_t size)
Initializes this Vector with the specified element size.
void removeAllElements(Vector *self)
Removes all elements from this Vector without modifying its capacity.
void insertElementAtIndex(Vector *self, const ident element, size_t index)
Inserts the element at the specified index.
ssize_t indexOfElement(const Vector *self, const ident element)
void filterElements(Vector *self, Predicate predicate, ident data)
void enumerateElements(const Vector *self, VectorEnumerator enumerator, ident data)
Enumerates the elements of this Vector with the given function.