flatMapToSet
Transforms each element of the receiver iterable to an iterable and flattens these iterables into a single set.
Receiver
The iterable to be transformed.
Return
A set containing the flattened transformed elements from the receiver iterable.
Parameters
The destination set where the transformed elements are placed. By default, it is an empty mutable set.
A function that maps elements of the receiver iterable to an iterable of output elements.
Transforms each element of the receiver iterable to an iterable and flattens these iterables into a single set.
Receiver
The sequence to be transformed.
Return
A set containing the flattened transformed elements from the receiver iterable.
Parameters
The destination set where the transformed elements are placed. By default, it is an empty mutable set.
A function that maps elements of the receiver iterable to an iterable of output elements.