scalaz

==>>

sealed abstract class ==>>[A, B] extends AnyRef

An immutable map of key/value pairs implemented as a balanced binary tree

Based on Haskell's Data.Map

Source
Map.scala
Since

7.0.3

Linear Supertypes
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. ==>>
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new ==>>()

Abstract Value Members

  1. abstract val size: Int

    number of key/value pairs - O(1)

Concrete Value Members

  1. final def !=(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

    Definition Classes
    AnyRef → Any
  4. def +(a: (A, B))(implicit o: Order[A]): ==>>[A, B]

    tupled form of insert

  5. def -(k: A)(implicit o: Order[A]): ==>>[A, B]

    alias for delete

  6. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  7. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  8. def \\[C](other: ==>>[A, C])(implicit o: Order[A]): ==>>[A, B]

  9. def adjust(k: A, f: (B) ⇒ B)(implicit o: Order[A]): ==>>[A, B]

    if the key exists, transforms its value - O(log n)

  10. def adjustWithKey(k: A, f: (A, B) ⇒ B)(implicit o: Order[A]): ==>>[A, B]

    like adjust but with the key available in the transformation - O(log n)

  11. def alter(k: A, f: (Option[B]) ⇒ Option[B])(implicit o: Order[A]): ==>>[A, B]

  12. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  13. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  14. def delete(k: A)(implicit n: Order[A]): ==>>[A, B]

    removes a key/value pair - O(log n)

  15. def deleteAt(i: Int): ==>>[A, B]

  16. def deleteFindMax(t: Bin[A, B]): ((A, B), ==>>[A, B])

  17. def deleteFindMin(t: Bin[A, B]): ((A, B), ==>>[A, B])

  18. def deleteMax: ==>>[A, B]

  19. def deleteMin: ==>>[A, B]

  20. def difference[C](other: ==>>[A, C])(implicit o: Order[A]): ==>>[A, B]

  21. def differenceWith[C](other: ==>>[A, C])(f: (B, C) ⇒ Option[B])(implicit o: Order[A]): ==>>[A, B]

  22. def differenceWithKey[C](other: ==>>[A, C])(f: (A, B, C) ⇒ Option[B])(implicit o: Order[A]): ==>>[A, B]

  23. final def elemAt(i: Int): Option[(A, B)]

    Annotations
    @tailrec()
  24. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  25. final def equals(other: Any): Boolean

    Definition Classes
    ==>> → AnyRef → Any
  26. def filter(p: (B) ⇒ Boolean)(implicit o: Order[A]): ==>>[A, B]

  27. def filterWithKey(p: (A, B) ⇒ Boolean)(implicit o: Order[A]): ==>>[A, B]

  28. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  29. final def findMax: Option[(A, B)]

    Annotations
    @tailrec()
  30. final def findMin: Option[(A, B)]

    Annotations
    @tailrec()
  31. def fold[C](z: C)(f: (A, B, C) ⇒ C): C

  32. def foldMapWithKey[C](f: (A, B) ⇒ C)(implicit F: Monoid[C]): C

  33. def foldlWithKey[C](z: C)(f: (C, A, B) ⇒ C): C

  34. def foldrWithKey[C](z: C)(f: (A, B, C) ⇒ C): C

  35. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  36. final def hashCode(): Int

    Definition Classes
    ==>> → AnyRef → Any
  37. def insert(kx: A, x: B)(implicit n: Order[A]): ==>>[A, B]

    inserts a new key/value - O(log n).

    inserts a new key/value - O(log n).

    If the key is already present, its value is replaced by the provided value.

  38. def insertWith(f: (B, B) ⇒ B, kx: A, x: B)(implicit o: Order[A]): ==>>[A, B]

    inserts a new key/value pair, resolving the conflict if the key already exists - O(log n)

    inserts a new key/value pair, resolving the conflict if the key already exists - O(log n)

    f

    function to resolve conflict with existing key: (insertedValue, existingValue) => resolvedValue

    kx

    key

    x

    value to insert if the key is not already present

  39. def insertWithKey(f: (A, B, B) ⇒ B, kx: A, x: B)(implicit o: Order[A]): ==>>[A, B]

    inserts a new key/value pair, resolving the conflict if the key already exists - O(log n)

    inserts a new key/value pair, resolving the conflict if the key already exists - O(log n)

    f

    function to resolve conflict with existing key: (key, insertedValue, existingValue) => resolvedValue

    kx

    key

    x

    value to insert if the key is not already present

  40. def intersection[C](other: ==>>[A, C])(implicit o: Order[A]): ==>>[A, B]

  41. def intersectionWith[C, D](other: ==>>[A, C])(f: (B, C) ⇒ D)(implicit o: Order[A]): ==>>[A, D]

  42. def intersectionWithKey[C, D](other: ==>>[A, C])(f: (A, B, C) ⇒ D)(implicit o: Order[A]): ==>>[A, D]

  43. def isEmpty: Boolean

    returns true if this map contains no key/value pairs - O(1)

  44. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  45. def isSubmapOf(a: ==>>[A, B])(implicit o: Order[A], e: Equal[B]): Boolean

  46. def isSubmapOfBy(a: ==>>[A, B], f: (B, B) ⇒ Boolean)(implicit o: Order[A]): Boolean

  47. def keySet: ISet[A]

  48. def keys: List[A]

  49. final def lookup(k: A)(implicit n: Order[A]): Option[B]

    Annotations
    @tailrec()
  50. final def lookupAssoc(k: A)(implicit n: Order[A]): Option[(A, B)]

    Annotations
    @tailrec()
  51. final def lookupGE(k: A)(implicit o: Order[A]): Option[(A, B)]

    Annotations
    @tailrec()
  52. final def lookupGT(k: A)(implicit o: Order[A]): Option[(A, B)]

    Annotations
    @tailrec()
  53. def lookupIndex(k: A)(implicit o: Order[A]): Option[Int]

  54. final def lookupLE(k: A)(implicit o: Order[A]): Option[(A, B)]

    Annotations
    @tailrec()
  55. final def lookupLT(k: A)(implicit o: Order[A]): Option[(A, B)]

    Annotations
    @tailrec()
  56. def map[C](f: (B) ⇒ C): ==>>[A, C]

  57. def mapAccum[C](z: C)(f: (C, B) ⇒ (C, B)): (C, ==>>[A, B])

  58. def mapAccumL[C](a: C)(f: (C, A, B) ⇒ (C, B)): (C, ==>>[A, B])

  59. def mapAccumWithKey[C](z: C)(f: (C, A, B) ⇒ (C, B)): (C, ==>>[A, B])

  60. def mapEither[C, D](f: (B) ⇒ \/[C, D])(implicit o: Order[A]): (==>>[A, C], ==>>[A, D])

  61. def mapEitherWithKey[C, D](f: (A, B) ⇒ \/[C, D])(implicit o: Order[A]): (==>>[A, C], ==>>[A, D])

  62. def mapKeys[C](f: (A) ⇒ C)(implicit o: Order[C]): ==>>[C, B]

  63. def mapKeysWith[C](f: (A) ⇒ C, f2: (B, B) ⇒ B)(implicit o: Order[C]): ==>>[C, B]

  64. def mapOption[C](f: (B) ⇒ Option[C])(implicit o: Order[A]): ==>>[A, C]

  65. def mapOptionWithKey[C](f: (A, B) ⇒ Option[C])(implicit o: Order[A]): ==>>[A, C]

  66. def mapWithKey[C](f: (A, B) ⇒ C): ==>>[A, C]

  67. def maxView: Option[(B, ==>>[A, B])]

  68. def maxViewWithKey: Option[((A, B), ==>>[A, B])]

  69. def member(k: A)(implicit n: Order[A]): Boolean

  70. def merge(other: ==>>[A, B]): ==>>[A, B]

    Attributes
    protected
  71. def minView: Option[(B, ==>>[A, B])]

  72. def minViewWithKey: Option[((A, B), ==>>[A, B])]

  73. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  74. def notMember(k: A)(implicit n: Order[A]): Boolean

  75. final def notify(): Unit

    Definition Classes
    AnyRef
  76. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  77. def partition(p: (B) ⇒ Boolean)(implicit o: Order[A]): (==>>[A, B], ==>>[A, B])

  78. def partitionWithKey(p: (A, B) ⇒ Boolean)(implicit o: Order[A]): (==>>[A, B], ==>>[A, B])

  79. def split(k: A)(implicit o: Order[A]): (==>>[A, B], ==>>[A, B])

  80. def splitLookup(k: A)(implicit o: Order[A]): (==>>[A, B], Option[B], ==>>[A, B])

  81. def splitLookupWithKey(k: A)(implicit o: Order[A]): (==>>[A, B], Option[(A, B)], ==>>[A, B])

  82. def splitRoot: List[==>>[A, B]]

  83. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  84. def toAscList: List[(A, B)]

  85. def toDescList: List[(A, B)]

  86. def toList: List[(A, B)]

  87. def toString(): String

    Definition Classes
    AnyRef → Any
  88. def traverseWithKey[F[_], C](f: (A, B) ⇒ F[C])(implicit G: Applicative[F]): F[==>>[A, C]]

  89. def union(other: ==>>[A, B])(implicit k: Order[A]): ==>>[A, B]

  90. def unionWith(other: ==>>[A, B])(f: (B, B) ⇒ B)(implicit o: Order[A]): ==>>[A, B]

  91. def unionWithKey(other: ==>>[A, B])(f: (A, B, B) ⇒ B)(implicit o: Order[A]): ==>>[A, B]

  92. def update(k: A, f: (B) ⇒ Option[B])(implicit o: Order[A]): ==>>[A, B]

    updates or removes a value - O(log n)

    updates or removes a value - O(log n)

    if f returns None, then the key is removed from the map

  93. def updateAppend(k: A, v: B)(implicit o: Order[A], bsg: Semigroup[B]): ==>>[A, B]

    insert v into the map at k.

    insert v into the map at k. If there is already a value for k, append to the existing value using the Semigroup

  94. def updateAt(i: Int, f: (A, B) ⇒ Option[B]): ==>>[A, B]

  95. def updateLookupWithKey(k: A, f: (A, B) ⇒ Option[B])(implicit o: Order[A]): (Option[B], ==>>[A, B])

    looks up a key and updates its value - O(log n)

    looks up a key and updates its value - O(log n)

    Similar to updateWithKey but also returns the value. If the value was updated, returns the new value. If the value was deleted, returns the old value.

  96. def updateMax(f: (B) ⇒ Option[B]): ==>>[A, B]

  97. def updateMaxWithKey(f: (A, B) ⇒ Option[B]): ==>>[A, B]

  98. def updateMin(f: (B) ⇒ Option[B]): ==>>[A, B]

  99. def updateMinWithKey(f: (A, B) ⇒ Option[B]): ==>>[A, B]

  100. def updateWithKey(k: A, f: (A, B) ⇒ Option[B])(implicit o: Order[A]): ==>>[A, B]

    like update but with the key available in the update function - O(log n)

  101. def values: List[B]

  102. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  103. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  104. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Deprecated Value Members

  1. def join(kx: A, x: B, other: ==>>[A, B])(implicit o: Order[A]): ==>>[A, B]

    Attributes
    protected
    Annotations
    @deprecated
    Deprecated

    (Since version 7.3) join is no longer a protected function

  2. final def trim(lo: (A) ⇒ Ordering, hi: (A) ⇒ Ordering): ==>>[A, B]

    Annotations
    @deprecated @tailrec()
    Deprecated

    (Since version 7.3) trim is no longer a public function

  3. final def trimLookupLo(lo: A, cmphi: (A) ⇒ Ordering)(implicit o: Order[A]): (Option[(A, B)], ==>>[A, B])

    Annotations
    @deprecated @tailrec()
    Deprecated

    (Since version 7.3) trimLookupLo is no longer a public function

Inherited from AnyRef

Inherited from Any

Ungrouped