Applies the given transform function to each element of the original collection and returns results as Set.