Scala Library
|
|
scala/Range.scala
]
class
Inclusive(start : Int, end : Int, step : Int)
extends
RangeValues and Variables inherited from Range | |
length |
Method Summary | |
override def
|
apply (idx : Int) : Int |
override def
|
by
(step : Int) : Range
Create a new range with the start and end values of this range and
a new
step . |
protected override def
|
inInterval
(x : Int) : Boolean
Returns true if x is inside the interval [start, end].
|
protected override def
|
last (base : Int, step : Int) : Int |
Methods inherited from Range | |
foreach, contains, inclusive |
Methods inherited from Projection | |
projection, force, map, append |
Methods inherited from RandomAccessSeq | |
elements, drop, take, slice, reverse, partition, patch, ++, toStream, safeIs |
Methods inherited from Projection | |
flatMap, takeWhile, filter |
Methods inherited from Seq | |
lengthCompare, size, isEmpty, concat, last, lastOption, first, firstOption, headOption, isDefinedAt, lastIndexOf, findIndexOf, indexOf, slice, dropWhile, contains, subseq, toArray, toSeq, equalsWith, startsWith, startsWith, endsWith, indexOf, containsSlice |
Methods inherited from Collection | |
toString, stringPrefix |
Methods inherited from Iterable | |
forall, exists, find, foldLeft, foldRight, /:, :\, reduceLeft, reduceRight, copyToBuffer, sameElements, toList, mkString, mkString, mkString, addString, addString, addString, copyToArray, hasDefiniteSize |
Methods inherited from PartialFunction | |
orElse, andThen |
Methods inherited from Function1 | |
compose |
Methods inherited from AnyRef | |
getClass, hashCode, equals, clone, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized |
Methods inherited from Any | |
==, !=, isInstanceOf, asInstanceOf |
Method Details |
step
.
Scala Library
|
|