# Itertools

object Itertools

## Functions

chain
Link copied to clipboard
fun <T> chain(vararg iterables: List<T>): Iterable<T>
combinations
Link copied to clipboard
fun <T> combinations(list: List<T>, r: Int): Iterable<List<T>>
compress
Link copied to clipboard
fun <T> compress(data: List<T>, selectors: List<Boolean?>): Iterable<T>
count
Link copied to clipboard
fun count(start: Int, step: Int = 1): Iterable<Int>
cycle
Link copied to clipboard
fun <T> cycle(list: List<T>): Iterable<T>
dropWhile
Link copied to clipboard
fun <T> dropWhile(pred: Predicate<T>, seq: List<T>): Iterable<T>
ifilter
Link copied to clipboard
fun <T> ifilter(predicate: Predicate<T>, list: List<T>): Iterable<T>
ifilterfalse
Link copied to clipboard
fun <T> ifilterfalse(predicate: Predicate<T>, list: List<T>): Iterable<T>
imap
Link copied to clipboard
fun <T, U> imap(f: Function<T, U>, vararg lists: List<T>): Iterable<U>
islice
Link copied to clipboard
fun <T> islice(seq: List<T>, stop: Int): Iterable<T>
fun <T> islice(seq: List<T>, stop: Int, step: Int): Iterable<T>
fun <T> islice(seq: List<T>, start: Int, stop: Int, step: Int): Iterable<T>
izip
Link copied to clipboard
fun <T> izip(vararg lists: List<T>): Iterable<List<T>>
izipLongest
Link copied to clipboard
fun <T> izipLongest(fillValue: T, vararg lists: List<T>): Iterable<List<T>>
permutations
Link copied to clipboard
fun <T> permutations(list: List<T>, r: Int): Iterable<List<T>>
product
Link copied to clipboard
fun <T> product(vararg lists: List<T>): Iterable<List<T>>
repeat
Link copied to clipboard
fun <T> repeat(t: T): Iterable<T>
fun <T> repeat(t: T, n: Int): Iterable<T>
takeWhile
Link copied to clipboard
fun <T> takeWhile(pred: Predicate<T>, seq: List<T>): Iterable<T>