Scala Listset apply() method with examples
In Scala ListSet, apply() method is utilized to check if the given element is present or not in the listSet. Method Definition: final def apply(elem: A): Boolean Return Type: True if element is present else false. Example 1: // Scala program of apply() // method import scala.collection.immutable._ /