class Sets
A collection of predefined general-purpose methods for working with java.util.Set
.
Sets()
A collection of predefined general-purpose methods for working with |
static fun <A : Any!, B : Any!> map(set: MutableSet<A>, mapper: (A) -> B): MutableSet<B>
Returns a set consisting of the results of applying the specified mapper to the elements of the given set. As the method is working directly with Set it needs to create one, thus it returns a static fun <A : Any!, B : Any!, C : MutableCollection<B>!> map(set: MutableSet<A>, supplier: Supplier<out C>, mapper: (A) -> B): C
Returns a set consisting of the results of applying the specified mapper to the elements of the given set. It's possible to specify what underlying |