Map

struct Map<I, U>

A lazy transformation over a consumed source iterator.

map is invoked exactly once for each source value requested through next. Dropping the adapter drops the source iterator and any values it still owns.

Properties

let inner: I

The source iterator being transformed.

let map: (I.Element) -> U

The transformation applied to each input element.