Lyricdev
GitHub

struct FlatMapIter

pub struct FlatMapIter<I :: [Iterator], B :: [Iterable<Iter = J>], J :: [Iterator], E :: [Error] = never> :: [
    Iterator
]

Conforms to Iterator, Closeable.

Yields the values of what f returns for each value of an iterator, one after the other; made by it.flatMap(f).

f may return any Iterable — an array or a list as well as an iterator.

Methods

pub mut fn next(): ?J.Item throws Join<Join<I.Error, E>, J.Error>
fn close(): void throws I.Error