What does set in scala collection?



What does set in scala collection?..

Answer / 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

More Scala Interview Questions

What is Case Classes?

1 Answers  


Explain extend keyword?

1 Answers  


What is a function literal in scala?

1 Answers  


What is akka in scala? Explain

1 Answers  


What are major differences between Java-Based and Scala-Based Maven Project’s structure?

1 Answers  


Can scala learn without java?

1 Answers  


What is scala best used for?

1 Answers  


What companies use scala?

1 Answers  


Difference between Scala’s Int and Java’s java.lang.Integer? What is the relationship between Int and RichInt in Scala?

1 Answers  


What is guard in Scala’s for-comprehension construct?

1 Answers  


What are the Java’s OOP constructs not supported by Scala? What are the Scala’s OOP constructs not supported by Java? What are the new OOPs constructs introduced by Scala, but not supported by Java?

1 Answers  


What do you mean by implicit parameters?

1 Answers  


Categories