map

object map

Provides nice extensions to the interface of scala.Map, for convenience.

class Object
trait Matchable
class Any
map.type

Extensions

Extensions

extension [Key, Value](self: Map[Key, Value])
def mapValuesOnly[Result](transform: Value => Result): Map[Key, Result]

Constructs and returns a new map by transforming each value with a given function.

Constructs and returns a new map by transforming each value with a given function.

Value parameters:
transform

the value-transforming function