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
- Alphabetic
- By Inheritance
- ==>>
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Concrete Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
def
+(a: (A, B))(implicit o: Order[A]): ==>>[A, B]
tupled form of insert
-
def
-(k: A)(implicit o: Order[A]): ==>>[A, B]
alias for delete
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def \\(other: ==>>[A, B])(implicit o: Order[A]): ==>>[A, B]
-
def
adjust(k: A, f: (B) ⇒ B)(implicit o: Order[A]): ==>>[A, B]
if the key exists, transforms its value - O(log n)
-
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)
- def alter(k: A, f: (Option[B]) ⇒ Option[B])(implicit o: Order[A]): ==>>[A, B]
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
def
delete(k: A)(implicit n: Order[A]): ==>>[A, B]
removes a key/value pair - O(log n)
- def deleteAt(i: Int): ==>>[A, B]
- def deleteMax: ==>>[A, B]
- def deleteMin: ==>>[A, B]
- def difference(other: ==>>[A, B])(implicit o: Order[A]): ==>>[A, B]
- def differenceWith[C](other: ==>>[A, C], f: (B, C) ⇒ Option[B])(implicit o: Order[A]): ==>>[A, B]
- def differenceWithKey[C](other: ==>>[A, C], f: (A, B, C) ⇒ Option[B])(implicit o: Order[A]): ==>>[A, B]
-
final
def
elemAt(i: Int): Option[(A, B)]
- Annotations
- @tailrec()
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
equals(other: Any): Boolean
- Definition Classes
- ==>> → AnyRef → Any
- def filter(p: (B) ⇒ Boolean)(implicit o: Order[A]): ==>>[A, B]
- def filterWithKey(p: (A, B) ⇒ Boolean)(implicit o: Order[A]): ==>>[A, B]
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
findMax: Option[(A, B)]
- Annotations
- @tailrec()
-
final
def
findMin: Option[(A, B)]
- Annotations
- @tailrec()
- def fold[C](z: C)(f: (A, B, C) ⇒ C): C
- def foldlWithKey[C](z: C)(f: (C, A, B) ⇒ C): C
- def foldrWithKey[C](z: C)(f: (A, B, C) ⇒ C): C
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
hashCode(): Int
- Definition Classes
- ==>> → AnyRef → Any
-
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.
-
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
-
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
- def intersection[C](other: ==>>[A, C])(implicit o: Order[A]): ==>>[A, B]
- def intersectionWith[C, D](other: ==>>[A, C])(f: (B, C) ⇒ D)(implicit o: Order[A]): ==>>[A, D]
- def intersectionWithKey[C, D](other: ==>>[A, C])(f: (A, B, C) ⇒ D)(implicit o: Order[A]): ==>>[A, D]
-
def
isEmpty: Boolean
returns
true
if this map contains no key/value pairs - O(1) -
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def isSubmapOf(a: ==>>[A, B])(implicit o: Order[A], e: Equal[B]): Boolean
- def isSubmapOfBy(a: ==>>[A, B], f: (B, B) ⇒ Boolean)(implicit o: Order[A]): Boolean
-
def
join(kx: A, x: B, other: ==>>[A, B])(implicit o: Order[A]): ==>>[A, B]
- Attributes
- protected
- def keySet: ISet[A]
- def keys: List[A]
-
final
def
lookup(k: A)(implicit n: Order[A]): Option[B]
- Annotations
- @tailrec()
-
final
def
lookupAssoc(k: A)(implicit n: Order[A]): Option[(A, B)]
- Annotations
- @tailrec()
- def lookupIndex(k: A)(implicit o: Order[A]): Option[Int]
- def map[C](f: (B) ⇒ C): ==>>[A, C]
- def mapAccum[C](z: C)(f: (C, B) ⇒ (C, B)): (C, ==>>[A, B])
- def mapAccumL[C](a: C)(f: (C, A, B) ⇒ (C, B)): (C, ==>>[A, B])
- def mapAccumWithKey[C](z: C)(f: (C, A, B) ⇒ (C, B)): (C, ==>>[A, B])
- def mapEither[C, D](f: (B) ⇒ \/[C, D])(implicit o: Order[A]): (==>>[A, C], ==>>[A, D])
- def mapEitherWithKey[C, D](f: (A, B) ⇒ \/[C, D])(implicit o: Order[A]): (==>>[A, C], ==>>[A, D])
- def mapKeys[C](f: (A) ⇒ C)(implicit o: Order[C]): ==>>[C, B]
- def mapKeysWith[C](f: (A) ⇒ C, f2: (B, B) ⇒ B)(implicit o: Order[C]): ==>>[C, B]
- def mapOption[C](f: (B) ⇒ Option[C])(implicit o: Order[A]): ==>>[A, C]
- def mapOptionWithKey[C](f: (A, B) ⇒ Option[C])(implicit o: Order[A]): ==>>[A, C]
- def mapWithKey[C](f: (A, B) ⇒ C): ==>>[A, C]
- def maxView: Option[(B, ==>>[A, B])]
- def maxViewWithKey: Option[((A, B), ==>>[A, B])]
- def member(k: A)(implicit n: Order[A]): Boolean
-
def
merge(other: ==>>[A, B]): ==>>[A, B]
- Attributes
- protected
- def minView: Option[(B, ==>>[A, B])]
- def minViewWithKey: Option[((A, B), ==>>[A, B])]
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def notMember(k: A)(implicit n: Order[A]): Boolean
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- def partition(p: (B) ⇒ Boolean)(implicit o: Order[A]): (==>>[A, B], ==>>[A, B])
- def partitionWithKey(p: (A, B) ⇒ Boolean)(implicit o: Order[A]): (==>>[A, B], ==>>[A, B])
- def split(k: A)(implicit o: Order[A]): (==>>[A, B], ==>>[A, B])
- def splitLookup(k: A)(implicit o: Order[A]): (==>>[A, B], Option[B], ==>>[A, B])
- def splitLookupWithKey(k: A)(implicit o: Order[A]): (==>>[A, B], Option[(A, B)], ==>>[A, B])
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
- def toAscList: List[(A, B)]
- def toDescList: List[(A, B)]
- def toList: List[(A, B)]
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
trim(lo: (A) ⇒ Ordering, hi: (A) ⇒ Ordering): ==>>[A, B]
- Annotations
- @tailrec()
-
final
def
trimLookupLo(lo: A, cmphi: (A) ⇒ Ordering)(implicit o: Order[A]): (Option[(A, B)], ==>>[A, B])
- Annotations
- @tailrec()
- def union(other: ==>>[A, B])(implicit k: Order[A]): ==>>[A, B]
- def unionWith(other: ==>>[A, B])(f: (B, B) ⇒ B)(implicit o: Order[A]): ==>>[A, B]
- def unionWithKey(other: ==>>[A, B])(f: (A, B, B) ⇒ B)(implicit o: Order[A]): ==>>[A, B]
-
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
returnsNone
, then the key is removed from the map -
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
- def updateAt(i: Int, f: (A, B) ⇒ Option[B]): ==>>[A, B]
-
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.
- def updateMax(f: (B) ⇒ Option[B]): ==>>[A, B]
- def updateMaxWithKey(f: (A, B) ⇒ Option[B]): ==>>[A, B]
- def updateMin(f: (B) ⇒ Option[B]): ==>>[A, B]
- def updateMinWithKey(f: (A, B) ⇒ Option[B]): ==>>[A, B]
-
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)
- def values: List[B]
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()