itertools20.1.1 package

itertools2: Functions creating iterators for efficient looping

consume

Consumes the first n elements of an iterator

dotproduct

Computes the dot product of two iterable objects

ichain

Iterator that chains multiple arguments together into a single iterato...

ichunk

Iterator that returns elements in fixed-length chunks

icompress

Iterator that filters elements where corresponding selector is false.

icount

Iterator of neverending numeric sequence with initial value and step s...

icycle

Iterator that cycles indefinitely through an iterable object

idropwhile

Iterator that drops elements until the predicate function returns FALS...

ienumerate

Iterator that returns the elements of an object along with their indic...

ifilter

Iterator that filters elements not satisfying a predicate function

ilength

Consumes an iterator and computes its length

imap

Iterator that applies a given function to several iterables concurrent...

ipad

Iterator that returns an object followed indefinitely by a fill value

ipairwise

Iterator that returns elements of an object in pairs

iproduct

Iterator that returns the Cartesian product of the arguments.

irep

Iterator that replicates elements of an iterable object

irepeat

Iterator that returns an object indefinitely

iroundrobin

Iterator that traverses each given iterable in a roundrobin order

is_iterator

Helper function that determines whether is an iterator object

iseq

Iterators for sequence generation

islice

Iterator that returns selected elements from an iterable.

istarmap

Iterator that applies a given function to the elements of an iterable.

itabulate

Iterator that maps a function to a sequence of numeric values

itakewhile

Iterator that returns elements while a predicate function returns TRUE

itee

Returns a list of n independent iterators from a single iterable objec...

iter_deepcopy

Performs a deep copy of an iterator

iter_length

Helper function that determines the length of an iterator object

itertools2

itertools2: Functions creating iterators for efficient looping

iunique

Iterator that extracts the unique elements from an iterable object

iunique_justseen

Iterator that extracts the just-seen unique elements from an iterable ...

izip

Iterator that iterates through several iterables concurrently.

izip_longest

Iterator that iterates through several iterables concurrently.

nth

Returns the nth item of an iterator

quantify

Count the number of times an iterable object is TRUE

stop_iteration

Helper function that determines whether an object inherits from a Stop...

take

Return the first n elements of an iterable object as a list

try_nextElem

Calls iterators::nextElem(). If error, returns default value.

A port of Python's excellent itertools module to R for efficient looping.

  • Maintainer: John A. Ramey
  • License: MIT + file LICENSE
  • Last published: 2014-08-08