filter(function, an_iter)
*If the iterable an_iter is a sequence, then the returned value is of that same type,
otherwise the returned value is a list.*
I came across the above description as part of the definition for the filter(func, a_sequence) function in Python.
I understand how filter works on a sequence type (lists, strings, tuples). However, can you give me situations where a non-sequence type is the an_iter parameter and what kind of result would form?