Packages

object NonEmptyMap

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. NonEmptyMap
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Value Members

  1. def apply[K, V](elem: (K, V), others: (K, V)*): NonEmptyMap[K, V]

    Creates a NonEmptyMap with the specified elements.

    Creates a NonEmptyMap with the specified elements.

    elem

    an element of the created NonEmptyMap

    others

    the remaining elements of the created NonEmptyMap

    returns

    a new NonEmptyMap with elements elem and others

  2. def apply[K, V](elem: (K, V), others: Iterable[(K, V)]): NonEmptyMap[K, V]
  3. def fromIterable[K, V](head: (K, V), tail: Iterable[(K, V)]): NonEmptyMap[K, V]

    Constructs a NonEmptyMap from an element and Iterable.

  4. def fromIterableOption[K, V](iterable: Iterable[(K, V)]): Option[NonEmptyMap[K, V]]

    Constructs a NonEmptyMap from an Iterable or None otherwise.

  5. def fromMap[K, V](elem: (K, V), others: Map[K, V]): NonEmptyMap[K, V]

    Constructs a NonEmptyMap from an element and Map.

  6. def fromMapOption[K, V](map: Map[K, V]): Option[NonEmptyMap[K, V]]

    Constructs a NonEmptyMap from a Map or None otherwise.

  7. def fromNonEmptyChunk[K, V](elems: NonEmptyChunk[(K, V)]): NonEmptyMap[K, V]

    Constructs a NonEmptyMap from a NonEmptyChunk.

  8. def fromNonEmptyList[K, V](elems: NonEmptyList[(K, V)]): NonEmptyMap[K, V]

    Constructs a NonEmptyMap from a NonEmptyList.

  9. def groupByFromNonEmptyChunk[A, K](from: NonEmptyChunk[A])(f: (A) => K): NonEmptyMap[K, NonEmptyChunk[A]]

    from a non-empty chunk we can create a non-empty map of non-empty chunks

  10. def groupByFromNonEmptyList[A, K](from: NonEmptyList[A])(f: (A) => K): NonEmptyMap[K, NonEmptyList[A]]

    from a non-empty list we can create a non-empty map of non-empty list

  11. def groupByFromNonEmptySet[A, K](from: NonEmptySet[A])(f: (A) => K): NonEmptyMap[K, NonEmptySet[A]]

    from a non-empty set we can create a non-empty map of non-empty sets

  12. def groupByOption[A, K](from: Iterable[A])(f: (A) => K): Option[NonEmptyMap[K, Iterable[A]]]

    GroupByOption function returns an option of a nonEmpty map instead of a map because by definition the elements will be non-empty - returns None if from is

  13. def single[K, V](head: (K, V)): NonEmptyMap[K, V]

    Constructs a NonEmptyMap with the specified single value.

  14. implicit def toMap[K, V](nonEmptyMap: NonEmptyMap[K, V]): Map[K, V]

    Provides an implicit conversion from NonEmptyMap to the Map for interoperability with Scala's collection library.

  15. def unapply[K, V](arg: NonEmptyMap[K, V]): Some[((K, V), Map[K, V])]