map

o1.util.nice.map
object map

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

Attributes

Supertypes
class Object
trait Matchable
class Any

Members list

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.

transform

the value-transforming function