in scala.collection
trait Ranged

`abstract trait` Ranged [K, +A]
  `extends` java.lang.Object
  `with` scala.Iterable[A]
  `with` scala.ScalaObject

  Any collection (including maps) whose keys (or elements) are ordered.

Author:
  Sean McDirmid

Direct Known Subclasses:
  Ranged, Sorted

Def Summary
`abstract` | `def` compare (k0: K, k1: K) : scala.Int Comparison function that orders keys.
`abstract` | `def` first : K Returns the first key of the collection.
| `def` from (from: K) : scala.collection.Ranged[K, A] Creates a ranged projection of this collection with no upper-bound.
`abstract` | `def` last : K Returns the last key of the collection.
| `def` range (from: K, until: K) : scala.collection.Ranged[K, A] Creates a ranged projection of this collection with both a lower-bound and an upper-bound.
`abstract` | `def` rangeImpl (from: scala.Option[K], until: scala.Option[K]) : scala.collection.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) : scala.collection.Ranged[K, A] Creates a ranged projection of this collection with no lower-bound.

Def inherited from scala.Iterable[A]
++ , /:, :\, addString, concat, copyToBuffer, drop, dropWhile, elements, exists, filter, find, findIndexOf, flatMap, foldLeft, foldRight, forall, foreach, indexOf, map, mkString, mkString, reduceLeft, reduceRight, sameElements, take, takeWhile, toList

Def Detail

`abstract def` compare (k0: K, k1: K): scala.Int

  Comparison function that orders keys.

`abstract def` first : K

  Returns the first key of the collection.

`def` from (from: K): scala.collection.Ranged[K, A]

  Creates a ranged projection of this collection with no upper-bound.

Parameters:
  `from -` The lower-bound (inclusive) of the ranged projection.

`abstract def` last : K

  Returns the last key of the collection.

`def` range (from: K, until: K): scala.collection.Ranged[K, A]

  Creates a ranged projection of this collection with both a lower-bound and an upper-bound.

Parameters:
  `from -` The upper-bound (exclusive) of the ranged projection.
Parameters:
  `until -` ...
Returns:
  ...

`abstract def` rangeImpl (from: scala.Option[K], until: scala.Option[K]): scala.collection.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.

Parameters:
  `from -` The lower-bound (inclusive) of the ranged projection. `None` if there is no lower bound.
Parameters:
  `until -` The upper-bound (exclusive) of the ranged projection. `None` if there is no upper bound.

`def` until (until: K): scala.collection.Ranged[K, A]

  Creates a ranged projection of this collection with no lower-bound.

Parameters:
  `until -` The upper-bound (exclusive) of the ranged projection.