Class/Object

scalaz

==>>

Related Docs: object ==>> | package scalaz

Permalink

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
Visibility
  1. Public
  2. All

Abstract Value Members

  1. abstract val size: Int

    Permalink

    number of key/value pairs - O(1)

Concrete Value Members

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

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

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

    Permalink

    tupled form of insert

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

    Permalink

    alias for delete

  5. final def ==(arg0: Any): Boolean

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

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

    Permalink

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

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

    Permalink

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

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

    Permalink
  10. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  11. def clone(): AnyRef

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

    Permalink

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

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

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

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

    Permalink
  16. def deleteMax: ==>>[A, B]

    Permalink
  17. def deleteMin: ==>>[A, B]

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

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

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

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

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

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

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

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

    Permalink
  26. def finalize(): Unit

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

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

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

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

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

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

    Permalink
  33. final def getClass(): Class[_]

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

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

    Permalink

    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.

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

    Permalink

    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

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

    Permalink

    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

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

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

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

    Permalink
  41. def isEmpty: Boolean

    Permalink

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

  42. final def isInstanceOf[T0]: Boolean

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

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

    Permalink
  45. def keySet: ISet[A]

    Permalink
  46. def keys: List[A]

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    Permalink
  71. final def ne(arg0: AnyRef): Boolean

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

    Permalink
  73. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  74. final def notifyAll(): Unit

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

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

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

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

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

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

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

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

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

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

    Permalink
  85. def toString(): String

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

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

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

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

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

    Permalink

    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

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

    Permalink

    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

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

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

    Permalink

    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.

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

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

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

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

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

    Permalink

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

  99. def values: List[B]

    Permalink
  100. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Deprecated Value Members

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

    Permalink
    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]

    Permalink
    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])

    Permalink
    Annotations
    @deprecated @tailrec()
    Deprecated

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

Inherited from AnyRef

Inherited from Any

Ungrouped