implicit final class ApsoListMap[K, V] extends AnyVal
Implicit class that provides new methods for sequences of maps.
- Alphabetic
- By Inheritance
- ApsoListMap
- AnyVal
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
-
new
ApsoListMap(list: Seq[Map[K, V]])
- list
the sequence of maps to which the new methods are provided.
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- Any
-
final
def
##(): Int
- Definition Classes
- Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
getClass(): Class[_ <: AnyVal]
- Definition Classes
- AnyVal → Any
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- val list: Seq[Map[K, V]]
-
def
sequenceOnMap(zero: Option[(Map[K, V]) ⇒ V]): Map[K, List[V]]
Converts this list of maps into a map of lists.
Converts this list of maps into a map of lists. The order of the elements is kept between structures. If a zero element is given, maps which do not contain certain keys are filled with the zero element, which is created by passing the whole original map to the zero function. This implies that all the lists in the given map will have the same length, corresponding to the size of the set of all keys. If a zero element is not given, only the elements present in this map are packed into the lists of the resulting map.
- zero
a function that creates the zero element, based on the original map being processed.
- returns
the map of lists converted from this map.
-
def
sequenceOnMap(zero: Option[V] = None)(implicit dummy: DummyImplicit): Map[K, List[V]]
Converts this list of maps into a map of lists.
Converts this list of maps into a map of lists. The order of the elements is kept between structures. If a zero element is given, maps which do not contain certain keys are filled with the zero element, which effectively implies that all the lists in the given map will have the same length, corresponding to the size of the set of all keys. If a zero element is not given, only the elements present in this map are packed into the lists of the resulting map.
- zero
the zero element, used as described above
- returns
the map of lists converted from this map.
-
def
toString(): String
- Definition Classes
- Any