cgta.oscala.extensions

IMapExtensions

final class IMapExtensions[A, B] extends AnyVal

Linear Supertypes
AnyVal, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. IMapExtensions
  2. AnyVal
  3. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new IMapExtensions(m: oscala.IMap[A, B])

Value Members

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

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

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

    Definition Classes
    Any
  4. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  5. def getClass(): Class[_ <: AnyVal]

    Definition Classes
    AnyVal → Any
  6. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  7. val m: oscala.IMap[A, B]

  8. def mapValue[B1 >: B](k: A, f: (Option[B]) ⇒ Option[B1]): oscala.IMap[A, B1]

    Maps one value in an immutable map, replacing it with a new one.

    Maps one value in an immutable map, replacing it with a new one.

    B1

    the LUB of the map value type and the new type

    k

    the key to update, if no key exists the None will be passed to f

    f

    the function that will change the value to a new value, returning none here removes the value

    returns

    a new map with a k->f(oldValue) replacing k->oldValue

  9. def toString(): String

    Definition Classes
    Any

Inherited from AnyVal

Inherited from Any

Ungrouped