Add iterator built-in function