Some convenient functions to work with arrays.
This version of arrayhelpers can be found in the following snapshots: