Replace list_elements with list_iter