Itertools

object Itertools

Functions

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