map

open fun <E, R> map(@NonNull collection: Collection<E>, @NonNull transform: (E) -> R): List<R>

Returns a new Array containing the results of the transform function for all elements

Return

Filtered Collection