O1Library Docs
Fall 2026
Docs API

# map

o1.util.nice.map
object map

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

## Attributes

Graph
Supertypes
  class Object
  trait Matchable
  class Any
Self type
  map.type

## Members list

### 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.

## Parameters

transform

  the value-transforming function

## Attributes