make array from iterator using coderef