Unified "foreach" syntax between functions and iterators.