The iter() function with a sentinel value