Base trait for sorted collections
| Supertypes | |
|---|---|
| Known subtypes | 33 types |
Returns the first key of the collection.
Returns the last key of the collection.
Creates a ranged projection of this collection. Any mutations in the ranged projection will update this collection and vice versa.
Note: keys are not guaranteed to be consistent between this collection and the projection. This is the case for buffers where indexing is relative to the projection.
| Value parameters |
|
|---|
Create a range projection of this collection with no lower-bound.
| Value parameters |
|
|---|
Creates a ranged projection of this collection with both a lower-bound and an upper-bound.
| Value parameters |
|
|---|
Creates a ranged projection of this collection with no upper-bound.
| Value parameters |
|
|---|
Creates a ranged projection of this collection with no lower-bound.
| Value parameters |
|
|---|
© 2002-2022 EPFL, with contributions from Lightbend.
Licensed under the Apache License, Version 2.0.
https://scala-lang.org/api/3.2.0/scala/collection/SortedOps.html