Scoop API

scoop:scoop.std:0.1.0

flatMapTo

function flatMapTo

source · line 54
public
public fun <T, R> Iterable<T>.flatMapTo(destination: MutableList<R>, transform: (T) -> Iterable<R>): MutableList<R>

Extension receiver: Iterable<T>

Appends each transformed iterable to the destination and returns it.

function flatMapTo

source · line 65
public
public fun <T, R> Iterable<T>.flatMapTo(destination: MutableSet<R>, transform: (T) -> Iterable<R>): MutableSet<R>

Extension receiver: Iterable<T>

Appends each transformed iterable to the destination and returns it.