Scala Library Documentation
|
|
scala/collection/Ranged.scala
]
trait
Ranged[K, +A]
extends
Iterable[A]Method Summary | |
abstract def
|
compare
(k0 : K, k1 : K) : Int
Comparison function that orders keys.
|
abstract def
|
firstKey
: K
Returns the first key of the collection.
|
def
|
from
(from : K) : Ranged[K, A]
Creates a ranged projection of this collection with no upper-bound.
|
abstract def
|
lastKey
: K
Returns the last key of the collection.
|
def
|
range
(from : K, until : K) : Ranged[K, A]
Creates a ranged projection of this collection with both a lower-bound
and an upper-bound.
|
abstract def
|
rangeImpl
(from : Option[K], until : Option[K]) : Ranged[K, A]
Creates a ranged projection of this collection. Any mutations in the
ranged projection will update this collection and vice versa. Note: keys
are not garuanteed to be consistent between this collection and the projection.
This is the case for buffers where indexing is relative to the projection.
|
def
|
until
(until : K) : Ranged[K, A]
Creates a ranged projection of this collection with no lower-bound.
|
Methods inherited from Iterable | |
elements (abstract), concat, ++, map, flatMap, filter, takeWhile, dropWhile, take, drop, foreach, forall, exists, find, findIndexOf, indexOf, foldLeft, foldRight, /:, :\, reduceLeft, reduceRight, copyToBuffer, sameElements, toList, toStream, mkString, mkString, mkString, addString, addString, copyToArray, isEmpty, projection, hasDefiniteSize |
Methods inherited from AnyRef | |
getClass, hashCode, equals, clone, toString, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized |
Methods inherited from Any | |
==, !=, isInstanceOf, asInstanceOf |
Scala Library Documentation
|
|