The splitAt() method is utilized to split the given SortedSet into a prefix/suffix pair at a stated position.
Method Definition: def splitAt(n: Int): (SortedSet[A], SortedSet[A])
Where, n is the position at which we need to split.
Return Type: It returns a pair of TreeSets consisting of the first n elements of this SortedSet, and the other elements.
(TreeSet(2, 4), TreeSet(12, 31))
(TreeSet(1, 2), TreeSet(3, 4))