Ifilterfalse(function or None, sequence) -> ifilterfalse object If function is None, return the items that are true. Return those items of sequence for which function(item) is true. Ifilter(function or None, sequence) -> ifilter object (key, sub-iterator) grouped by each value of key(value). Groupby(iterable) -> create an iterator which returns Return elements from the iterable until it is exhausted.ĭropwhile(predicate, iterable) -> dropwhile objectĭrop items from the iterable while predicate(item) is true.Īfterwards, return every element until the iterable is exhausted. next() -> the next value, or raise StopIteration _iter_() iter(x) _reduce_(.) Return state information for pickling. next() method returns consecutive values. Return data elements corresponding to true selector elements.įorms a shorter iterator from selected data elements using the Return successive r-length combinations of elements in the iterableĪllowing individual elements to have successive repeats.Ĭombinations_with_replacement('ABC', 2) -> AA AB AC BB BC CCĬompress(data, selectors) -> iterator over selected data next() -> the next value, or raise StopIterationĬlass combinations_with_replacement( _builtin_.object)Ĭombinations_with_replacement(iterable, r) -> combinations_with_replacement object _new_(S, .) -> a new object with type S, a subtype of TĬombinations(iterable, r) -> combinations object from_iterable(iterable) -> chain objectĪlternate chain() contructor taking a single iterable argument _iter_() iter(x) from_iterable(.) chain. Iterable, until all of the iterables are exhausted. next() method returns elements from theįirst iterable until it is exhausted, then elements from the next _builtin_.object chain combinations combinations_with_replacement compress count cycle dropwhile groupby ifilter ifilterfalse imap islice izip izip_longest permutations product repeat starmap takewhile Takewhile(pred, seq) -> seq, seq, until pred fails Ifilterfalse(pred, seq) -> elements of seq where pred(elem) is False Ifilter(pred, seq) -> elements of seq where pred(elem) is True System/Library/Frameworks/amework/Versions/2.7/lib/python2.7/lib-dynload/itertools.soįunctional tools for creating and using iterators.Ĭycle(p) -> p0, p1, . plast, p0, p1, .
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |