sortedMap

class Object
trait Matchable
class Any

Value members

Inherited methods

final
def alter[K, A](m: SortedMap[K, A], k: K)(f: Option[A] => Option[A]): SortedMap[K, A]

Vary the value of m get k.

Vary the value of m get k.

Inherited from
SortedMapFunctions
final
def getOrAdd[F[_], K, A](m: SortedMap[K, A], k: K)(fa: => F[A])(implicit F: Applicative[F]): F[(SortedMap[K, A], A)]

Grab a value out of SortedMap if it's present. Otherwise evaluate a value to be placed at that key in the SortedMap.

Grab a value out of SortedMap if it's present. Otherwise evaluate a value to be placed at that key in the SortedMap.

Inherited from
SortedMapFunctions
final
def insertWith[K, A](m1: SortedMap[K, A], k: K, v: A)(f: (A, A) => A): SortedMap[K, A]

As with SortedMap.updated, but resolve a collision with f. The first argument is guaranteed to be from m1.

As with SortedMap.updated, but resolve a collision with f. The first argument is guaranteed to be from m1.

Inherited from
SortedMapFunctions
final
def intersectWith[K : Ordering, A, B, C](m1: SortedMap[K, A], m2: SortedMap[K, B])(f: (A, B) => C): SortedMap[K, C]

Collect only elements with matching keys, joining their associated values with f.

Collect only elements with matching keys, joining their associated values with f.

Inherited from
SortedMapFunctions
final
def intersectWithKey[K : Ordering, A, B, C](m1: SortedMap[K, A], m2: SortedMap[K, B])(f: (K, A, B) => C): SortedMap[K, C]

Like intersectWith, but tell f about the key.

Like intersectWith, but tell f about the key.

Inherited from
SortedMapFunctions
final
def mapKeys[K, K2 : Ordering, A](m: SortedMap[K, A])(f: K => K2): SortedMap[K2, A]

Exchange keys of m according to f. Result may be smaller if f maps two or more Ks to the same K2, in which case the resulting associated value is an arbitrary choice.

Exchange keys of m according to f. Result may be smaller if f maps two or more Ks to the same K2, in which case the resulting associated value is an arbitrary choice.

Inherited from
SortedMapFunctions
final
def unionWith[K : Ordering, A](m1: SortedMap[K, A], m2: SortedMap[K, A])(f: (A, A) => A): SortedMap[K, A]

Union, resolving collisions with f, where the first arg is guaranteed to be from m1, the second from m2.

Union, resolving collisions with f, where the first arg is guaranteed to be from m1, the second from m2.

Note

iff f gives rise to a scalaz.Semigroup, so does unionWith(_, _)(f).

Inherited from
SortedMapFunctions
final
def unionWithKey[K : Ordering, A](m1: SortedMap[K, A], m2: SortedMap[K, A])(f: (K, A, A) => A): SortedMap[K, A]

Like unionWith, but telling f about the key.

Like unionWith, but telling f about the key.

Inherited from
SortedMapFunctions

Implicits

Inherited implicits

implicit
def sortedMapBand[K, V](implicit S: Band[V], K: Ordering[K]): Band[SortedMap[K, V]]
Inherited from
SortedMapInstances0
implicit
def sortedMapEqual[K : Order, V : Equal]: Equal[SortedMap[K, V]]
Inherited from
SortedMapInstances0
implicit
def sortedMapFoldable[K]: Foldable[[_] =>> SortedMap[K, _$7]]
Inherited from
SortedMapInstances0
implicit
def sortedMapInstance[K : Ordering]: Traverse[[_] =>> SortedMap[K, _$8]] & IsEmpty[[_] =>> SortedMap[K, _$9]] & Bind[[_] =>> SortedMap[K, _$10]] & Align[[_] =>> SortedMap[K, _$11]]

Covariant over the value parameter, where plus applies the Last semigroup to values.

Covariant over the value parameter, where plus applies the Last semigroup to values.

Inherited from
SortedMapInstances
implicit
def sortedMapMonoid[K, V](implicit S: Semigroup[V], K: Ordering[K]): Monoid[SortedMap[K, V]]

SortedMap union monoid, unifying values with V's append.

SortedMap union monoid, unifying values with V's append.

Inherited from
SortedMapInstances
implicit
def sortedMapOrder[K : Order, V : Order]: Order[SortedMap[K, V]]
Inherited from
SortedMapInstances
implicit
def sortedMapShow[K, V](implicit K: Show[K], V: Show[V]): Show[SortedMap[K, V]]
Inherited from
SortedMapInstances