Scala Collections - Set

Originally published at: http://www.itversity.com/topic/scala-collections-set/

Let us see Set in detail Set is iterable which contain unique elements (no duplicates) As duplicates are not allowed, there is no length (Seq have both length and index) Even though we can access data using index, it might not return same value always By default Set is immutable, but there is mutable one…