map

fun <R> map(transform: (T) -> R): MongoIterable<R>

Maps this iterable from the source document type to the target document type.

Return

an iterable which maps T to U

Parameters

R

the result document type

transform

a function that maps from the source to the target document type