function over Array and UArray possible?