MapBasedMutableAssignment

class MapBasedMutableAssignment[U, V](rho: U => V, factory: MapFactory[Map]) extends MutableAssignment[U, V]

A mutable assignment backed by a mutable map.

Value parameters:
factory

a factory for maps. Changing this parameter it is possible to choose which implementation of mutable maps we want to use.

rho

the initial value of this assignment.

Source:
MapBasedMutableAssignment.scala
trait MutableAssignment[U, V]
trait Iterable[(U, V)]
trait IterableOps[(U, V), Iterable, Iterable[(U, V)]]
trait IterableOnceOps[(U, V), Iterable, Iterable[(U, V)]]
trait IterableOnce[(U, V)]
trait U => V
class Object
trait Matchable
class Any

Value members

Concrete methods

override def toString: String

Returns a string representation of the object.

Returns a string representation of the object.

The default representation is platform dependent.

The string representation is human-readable, and shows both the updated binding of the assignment and the initial assignment.

Definition Classes
Source:
MapBasedMutableAssignment.scala

Inherited methods

final def ++[B >: (U, V)](suffix: IterableOnce[B]): Iterable[B]
Inherited from:
IterableOps
Inherited from:
IterableOnceOps
def andThen[A](g: V => A): U => A
Inherited from:
Function1
def collect[B](pf: PartialFunction[(U, V), B]): Iterable[B]
Inherited from:
IterableOps
def collectFirst[B](pf: PartialFunction[(U, V), B]): Option[B]
Inherited from:
IterableOnceOps
def compose[A](g: A => U): A => V
Inherited from:
Function1
def concat[B >: (U, V)](suffix: IterableOnce[B]): Iterable[B]
Inherited from:
IterableOps
def copyToArray[B >: (U, V)](xs: Array[B], start: Int, len: Int): Int
Inherited from:
IterableOnceOps
@deprecatedOverriding(message = "This should always forward to the 3-arg version of this method", since = "2.13.4")
def copyToArray[B >: (U, V)](xs: Array[B], start: Int): Int
Inherited from:
IterableOnceOps
@deprecatedOverriding(message = "This should always forward to the 3-arg version of this method", since = "2.13.4")
def copyToArray[B >: (U, V)](xs: Array[B]): Int
Inherited from:
IterableOnceOps
def corresponds[B](that: IterableOnce[B])(p: ((U, V), B) => Boolean): Boolean
Inherited from:
IterableOnceOps
def count(p: ((U, V)) => Boolean): Int
Inherited from:
IterableOnceOps
def drop(n: Int): Iterable[(U, V)]
Inherited from:
IterableOps
def dropRight(n: Int): Iterable[(U, V)]
Inherited from:
IterableOps
def dropWhile(p: ((U, V)) => Boolean): Iterable[(U, V)]
Inherited from:
IterableOps
override def empty: Iterable[(U, V)]
def exists(p: ((U, V)) => Boolean): Boolean
Inherited from:
IterableOnceOps
def filter(pred: ((U, V)) => Boolean): Iterable[(U, V)]
Inherited from:
IterableOps
def filterNot(pred: ((U, V)) => Boolean): Iterable[(U, V)]
Inherited from:
IterableOps
def find(p: ((U, V)) => Boolean): Option[(U, V)]
Inherited from:
IterableOnceOps
def flatMap[B](f: ((U, V)) => IterableOnce[B]): Iterable[B]
Inherited from:
IterableOps
def flatten[B](implicit asIterable: ((U, V)) => IterableOnce[B]): Iterable[B]
Inherited from:
IterableOps
def fold[A1 >: (U, V)](z: A1)(op: (A1, A1) => A1): A1
Inherited from:
IterableOnceOps
def foldLeft[B](z: B)(op: (B, (U, V)) => B): B
Inherited from:
IterableOnceOps
def foldRight[B](z: B)(op: ((U, V), B) => B): B
Inherited from:
IterableOnceOps
def forall(p: ((U, V)) => Boolean): Boolean
Inherited from:
IterableOnceOps
def foreach[U](f: ((U, V)) => U): Unit
Inherited from:
IterableOnceOps
protected def fromSpecific(coll: IterableOnce[(U, V)]): Iterable[(U, V)]
def groupBy[K](f: ((U, V)) => K): Map[K, Iterable[(U, V)]]
Inherited from:
IterableOps
def groupMap[K, B](key: ((U, V)) => K)(f: ((U, V)) => B): Map[K, Iterable[B]]
Inherited from:
IterableOps
def groupMapReduce[K, B](key: ((U, V)) => K)(f: ((U, V)) => B)(reduce: (B, B) => B): Map[K, B]
Inherited from:
IterableOps
def grouped(size: Int): Iterator[Iterable[(U, V)]]
Inherited from:
IterableOps
def head: (U, V)
Inherited from:
IterableOps
def headOption: Option[(U, V)]
Inherited from:
IterableOps
def init: Iterable[(U, V)]
Inherited from:
IterableOps
def inits: Iterator[Iterable[(U, V)]]
Inherited from:
IterableOps
Inherited from:
IterableOnceOps
Definition Classes
Inherited from:
IterableOps
Inherited from:
IterableOnce
def last: (U, V)
Inherited from:
IterableOps
def lastOption: Option[(U, V)]
Inherited from:
IterableOps
def lazyZip[B](that: Iterable[B]): LazyZip2[(U, V), B, MapBasedMutableAssignment[U, V]]
Inherited from:
Iterable
def map[B](f: ((U, V)) => B): Iterable[B]
Inherited from:
IterableOps
def max[B >: (U, V)](implicit ord: Ordering[B]): (U, V)
Inherited from:
IterableOnceOps
def maxBy[B](f: ((U, V)) => B)(implicit cmp: Ordering[B]): (U, V)
Inherited from:
IterableOnceOps
def maxByOption[B](f: ((U, V)) => B)(implicit cmp: Ordering[B]): Option[(U, V)]
Inherited from:
IterableOnceOps
def maxOption[B >: (U, V)](implicit ord: Ordering[B]): Option[(U, V)]
Inherited from:
IterableOnceOps
def min[B >: (U, V)](implicit ord: Ordering[B]): (U, V)
Inherited from:
IterableOnceOps
def minBy[B](f: ((U, V)) => B)(implicit cmp: Ordering[B]): (U, V)
Inherited from:
IterableOnceOps
def minByOption[B](f: ((U, V)) => B)(implicit cmp: Ordering[B]): Option[(U, V)]
Inherited from:
IterableOnceOps
def minOption[B >: (U, V)](implicit ord: Ordering[B]): Option[(U, V)]
Inherited from:
IterableOnceOps
final def mkString: String
Inherited from:
IterableOnceOps
final def mkString(sep: String): String
Inherited from:
IterableOnceOps
final def mkString(start: String, sep: String, end: String): String
Inherited from:
IterableOnceOps
protected def newSpecificBuilder: Builder[(U, V), Iterable[(U, V)]]
@deprecatedOverriding(message = "nonEmpty is defined as !isEmpty; override isEmpty instead", since = "2.13.0")
Inherited from:
IterableOnceOps
def partition(p: ((U, V)) => Boolean): (Iterable[(U, V)], Iterable[(U, V)])
Inherited from:
IterableOps
def partitionMap[A1, A2](f: ((U, V)) => Either[A1, A2]): (Iterable[A1], Iterable[A2])
Inherited from:
IterableOps
def product[B >: (U, V)](implicit num: Numeric[B]): B
Inherited from:
IterableOnceOps
def reduce[B >: (U, V)](op: (B, B) => B): B
Inherited from:
IterableOnceOps
def reduceLeft[B >: (U, V)](op: (B, (U, V)) => B): B
Inherited from:
IterableOnceOps
def reduceLeftOption[B >: (U, V)](op: (B, (U, V)) => B): Option[B]
Inherited from:
IterableOnceOps
def reduceOption[B >: (U, V)](op: (B, B) => B): Option[B]
Inherited from:
IterableOnceOps
def reduceRight[B >: (U, V)](op: ((U, V), B) => B): B
Inherited from:
IterableOnceOps
def reduceRightOption[B >: (U, V)](op: ((U, V), B) => B): Option[B]
Inherited from:
IterableOnceOps
protected def reversed: Iterable[(U, V)]
Inherited from:
IterableOnceOps
def scan[B >: (U, V)](z: B)(op: (B, B) => B): Iterable[B]
Inherited from:
IterableOps
def scanLeft[B](z: B)(op: (B, (U, V)) => B): Iterable[B]
Inherited from:
IterableOps
def scanRight[B](z: B)(op: ((U, V), B) => B): Iterable[B]
Inherited from:
IterableOps
def size: Int
Inherited from:
IterableOnceOps
def sizeCompare(that: Iterable[_]): Int
Inherited from:
IterableOps
def sizeCompare(otherSize: Int): Int
Inherited from:
IterableOps
Inherited from:
IterableOps
def slice(from: Int, until: Int): Iterable[(U, V)]
Inherited from:
IterableOps
def sliding(size: Int, step: Int): Iterator[Iterable[(U, V)]]
Inherited from:
IterableOps
def sliding(size: Int): Iterator[Iterable[(U, V)]]
Inherited from:
IterableOps
def span(p: ((U, V)) => Boolean): (Iterable[(U, V)], Iterable[(U, V)])
Inherited from:
IterableOps
override def splitAt(n: Int): (Iterable[(U, V)], Iterable[(U, V)])
Definition Classes
Inherited from:
IterableOps
def stepper[S <: Stepper[_]](implicit shape: StepperShape[(U, V), S]): S
Inherited from:
IterableOnce
def sum[B >: (U, V)](implicit num: Numeric[B]): B
Inherited from:
IterableOnceOps
def tail: Iterable[(U, V)]
Inherited from:
IterableOps
def tails: Iterator[Iterable[(U, V)]]
Inherited from:
IterableOps
def take(n: Int): Iterable[(U, V)]
Inherited from:
IterableOps
def takeRight(n: Int): Iterable[(U, V)]
Inherited from:
IterableOps
def takeWhile(p: ((U, V)) => Boolean): Iterable[(U, V)]
Inherited from:
IterableOps
override def tapEach[U](f: ((U, V)) => U): Iterable[(U, V)]
Definition Classes
Inherited from:
IterableOps
def to[C1](factory: Factory[(U, V), C1]): C1
Inherited from:
IterableOnceOps
def toArray[B >: (U, V) : ClassTag]: Array[B]
Inherited from:
IterableOnceOps
final def toBuffer[B >: (U, V)]: Buffer[B]
Inherited from:
IterableOnceOps
Inherited from:
IterableOnceOps
def toList: List[(U, V)]
Inherited from:
IterableOnceOps
def toMap[K, V](implicit ev: (U, V) <:< (K, V)): Map[K, V]
Inherited from:
IterableOnceOps
def toSeq: Seq[(U, V)]
Inherited from:
IterableOnceOps
def toSet[B >: (U, V)]: Set[B]
Inherited from:
IterableOnceOps
def toVector: Vector[(U, V)]
Inherited from:
IterableOnceOps
def transpose[B](implicit asIterable: ((U, V)) => Iterable[B]): Iterable[Iterable[B]]
Inherited from:
IterableOps
def unzip[A1, A2](implicit asPair: ((U, V)) => (A1, A2)): (Iterable[A1], Iterable[A2])
Inherited from:
IterableOps
def unzip3[A1, A2, A3](implicit asTriple: ((U, V)) => (A1, A2, A3)): (Iterable[A1], Iterable[A2], Iterable[A3])
Inherited from:
IterableOps
def view: View[(U, V)]
Inherited from:
IterableOps
def withFilter(p: ((U, V)) => Boolean): WithFilter[(U, V), Iterable]
Inherited from:
IterableOps
def zip[B](that: IterableOnce[B]): Iterable[((U, V), B)]
Inherited from:
IterableOps
def zipAll[A1 >: (U, V), B](that: Iterable[B], thisElem: A1, thatElem: B): Iterable[(A1, B)]
Inherited from:
IterableOps
def zipWithIndex: Iterable[((U, V), Int)]
Inherited from:
IterableOps

Deprecated and Inherited methods

@deprecated(message = "Use ++ instead of ++: for collections of type Iterable", since = "2.13.0")
def ++:[B >: (U, V)](that: IterableOnce[B]): Iterable[B]
Deprecated
[Since version 2.13.0] Use ++ instead of ++: for collections of type Iterable
Inherited from:
IterableOps
@inline @deprecated(message = "Use foldLeft instead of /:", since = "2.13.0")
final def /:[B](z: B)(op: (B, (U, V)) => B): B
Deprecated
[Since version 2.13.0] Use foldLeft instead of /:
Inherited from:
IterableOnceOps
@inline @deprecated(message = "Use foldRight instead of :\\", since = "2.13.0")
final def :\[B](z: B)(op: ((U, V), B) => B): B
Deprecated
[Since version 2.13.0] Use foldRight instead of :\\
Inherited from:
IterableOnceOps
@deprecated(message = "`aggregate` is not relevant for sequential collections. Use `foldLeft(z)(seqop)` instead.", since = "2.13.0")
def aggregate[B](z: => B)(seqop: (B, (U, V)) => B, combop: (B, B) => B): B
Deprecated
[Since version 2.13.0] `aggregate` is not relevant for sequential collections. Use `foldLeft(z)(seqop)` instead.
Inherited from:
IterableOnceOps
@inline @deprecatedOverriding(message = "Use iterableFactory instead", since = "2.13.0") @deprecated(message = "Use iterableFactory instead", since = "2.13.0")
Deprecated
[Since version 2.13.0] Use iterableFactory instead
Inherited from:
IterableOps
@inline @deprecated(message = "Use `dest ++= coll` instead", since = "2.13.0")
final def copyToBuffer[B >: (U, V)](dest: Buffer[B]): Unit
Deprecated
[Since version 2.13.0] Use `dest ++= coll` instead
Inherited from:
IterableOnceOps
@deprecated(message = "Check .knownSize instead of .hasDefiniteSize for more actionable information (see scaladoc for details)", since = "2.13.0")
Deprecated
[Since version 2.13.0] Check .knownSize instead of .hasDefiniteSize for more actionable information (see scaladoc for details)
Inherited from:
IterableOnceOps
@deprecated(message = "Use coll instead of repr in a collection implementation, use the collection value itself from the outside", since = "2.13.0")
final def repr: Iterable[(U, V)]
Deprecated
[Since version 2.13.0] Use coll instead of repr in a collection implementation, use the collection value itself from the outside
Inherited from:
IterableOps
@deprecated(message = "Iterable.seq always returns the iterable itself", since = "2.13.0")
Deprecated
[Since version 2.13.0] Iterable.seq always returns the iterable itself
Inherited from:
Iterable
@deprecated(message = "toIterable is internal and will be made protected; its name is similar to `toList` or `toSeq`, but it doesn\'t copy non-immutable collections", since = "2.13.7")
Deprecated
[Since version 2.13.7] toIterable is internal and will be made protected; its name is similar to `toList` or `toSeq`, but it doesn\'t copy non-immutable collections
Inherited from:
Iterable
@inline @deprecated(message = "Use .iterator instead of .toIterator", since = "2.13.0")
final def toIterator: Iterator[(U, V)]
Deprecated
[Since version 2.13.0] Use .iterator instead of .toIterator
Inherited from:
IterableOnceOps
@inline @deprecated(message = "Use .to(LazyList) instead of .toStream", since = "2.13.0")
final def toStream: Stream[(U, V)]
Deprecated
[Since version 2.13.0] Use .to(LazyList) instead of .toStream
Inherited from:
IterableOnceOps
@deprecated(message = "toTraversable is internal and will be made protected; its name is similar to `toList` or `toSeq`, but it doesn\'t copy non-immutable collections", since = "2.13.0")
final def toTraversable: Iterable[(U, V)]
Deprecated
[Since version 2.13.0] toTraversable is internal and will be made protected; its name is similar to `toList` or `toSeq`, but it doesn\'t copy non-immutable collections
Inherited from:
IterableOps
@deprecated(message = "Use .view.slice(from, until) instead of .view(from, until)", since = "2.13.0")
def view(from: Int, until: Int): View[(U, V)]
Deprecated
[Since version 2.13.0] Use .view.slice(from, until) instead of .view(from, until)
Inherited from:
IterableOps

Exports

Defined exports

def iterator: Iterator[(U, V)]
Exported from IterableOnce
Exported from MapOps