As far as I can tell, SortedSetBuilder doesn't have a mechanism to allow the caller to retrieve the built Set. I propose adding a method, func(s SortedSetBuilder[T])()SortedSet[T] which is analogous to ListBuilder.List() and MapBuilder.Map() respectively.
Happy to make a PR for this if you think it's useful
As far as I can tell,
SortedSetBuilder
doesn't have a mechanism to allow the caller to retrieve the built Set. I propose adding a method,func(s SortedSetBuilder[T])()SortedSet[T]
which is analogous toListBuilder.List()
andMapBuilder.Map()
respectively.Happy to make a PR for this if you think it's useful