Answer Posted / Durgesh Kumar Gound
The set method in Scala Collection API creates a new Set (a collection that contains no duplicate elements) from an Iterable. For example: val set = List(1, 2, 3).toSet.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers