package collection
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- collection
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- All
Value Members
-
def
toMapIfNoDupKeys[K, V](iterable: Iterable[(K, V)]): YinYang[K, Map[K, V]]
Returns as Yang the successfully constructed Map if there were no duplicate keys, as Yin the first duplicate key encounted if there were duplicate keys
-
def
toSetIfNoDups[T](iterable: Iterable[T]): YinYang[T, Set[T]]
Returns as Yang the successfully constructed set if there were no duplicates, as Yin the first duplicate value encountered if there were duplicates
-
def
toSortedMapIfNoDupKeys[K, V](iterable: Iterable[(K, V)])(implicit ordering: Ordering[K]): YinYang[K, SortedMap[K, V]]
Returns as Yang the successfully constructed SortedMap if there were no duplicate keys, as Yin the first duplicate key encounted if there were duplicate keys