Moves the iterator to the previous element and returns a pointer to it, or null at the start (the iterator then stays put).
array: Xar(int, 2, 4);
for 1..3 xar_add(*array, it);
iterator := xar_iterator(*array, 2);
assert(xar_prev(*array, *iterator).* == 2);
xar_reset(*array);xar_prev :: (array: *Xar, iterator: *array.Iterator) -> *array.Element_Type
Parameters
- array: *Xar
- iterator: *array.Iterator
Returns
- *array.Element_Type