filter(function, iterable) |
Returns test |
function | ?? |
iterable | ?? |
REMARKS |
* No prefix required - Core * Construct an iterator from those elements of iterable for which function is true. iterable may be either a sequence, a container which supports iteration, or an iterator. If function is None, the identity function is assumed, that is, all elements of iterable that are false are removed. * Note that filter(function, iterable) is equivalent to the generator expression (item for item in iterable if function(item)) if function is not None and (item for item in iterable if item) if function is None. |
??
© 2025 Better Solutions Limited. All Rights Reserved. © 2025 Better Solutions Limited Top