Python‎ > ‎itertools‎ > ‎

itertools.filterfalse()

http://www.adilwaseem.com/

Definition
Return those items of sequence for which function(item) is false. If function is None, return the items that are false.

Syntax
filterfalse(function or None, sequence) --> filterfalse object

Parameters
Function, or None
sequence

Example
The following is return:
 >>> def filterfalse(y):
y>8
>>>list=[1,2,3,4,5]
>>> list(itertools.filterfalse(filterfalse, list))
[1, 2, 3, 4, 5]
>>>

Comments