forEachWithLookahead
Performs the given action on each element, giving a lookahead hint (i.e. if there's another element to process after).
Performs the given action on each element, giving a lookahead hint (i.e. if there's another element to process after).