function array

simple functions for arrays