How to run through an index of an array using higherorder function

join shbcf.ru