Skip to content

Misleading documentation of Range.map - it returns an IndexedSeq not a Range #12681

@bjornregnell

Description

@bjornregnell

Problem

Copied from the doc of 3.2.0: https://www.scala-lang.org/api/3.2.0/scala/collection/immutable/Range.html#

image

The doc says map on Range returns a new Range but it returns an IndexedSeq (which defaults to Vector).

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions