Open In App

Scala Mutable SortedMap empty() method with example

Last Updated : 04 May, 2020
Comments
Improve
Suggest changes
Like Article
Like
Report
The empty() method is utilized to make the SortedMap empty.
Method Definition: def empty: SortedMap[A, B] Return Type: It returns an empty SortedMap.
Example #1:
Output:
Map()
Example #2:
Output:
Map()

Next Article

Similar Reads