impl.: split() function for arrays, to spilt an array in elements.