Scoop API

scoop:scoop.std:0.1.0

mapTo

function mapTo

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

Extension receiver: Iterable<T>

Appends transformed elements to the destination and returns it.

function mapTo

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

Extension receiver: Iterable<T>

Appends transformed elements to the destination and returns it.