public static class Series.Range extends Series.Int
Series.Discrete, Series.Int, Series.Lines, Series.Range, Series.Separator| Constructor and Description |
|---|
Range(int fst,
int ovr) |
Range(int fst,
int ovr,
int step)
The principal constructor for [fst, fst+step, fst+2*step, ...].
|
Range(Value.Int fst,
Value.Int ovr) |
Range(Value.Int fst,
Value.Int ovr,
Value.Int step) |
| Modifier and Type | Method and Description |
|---|---|
void |
advance()
Advance past the current element -- there might or might not
be any more; also see
Series.hasSome(). |
int |
elt_n()
The current element's int "code".
|
Value.Int |
elt()
See
elt_n(). |
boolean |
hasSome()
Is there at least a current element, (
Series.elt())?
Also see Series.hasNone(). |
int |
position()
What position in the Series are we at (starting at zero)?
If
Series.hasNone(), the series was finite and position()
is now its length. |
java.lang.String |
toString()
Return a short String description of 'this' Series,
say for use in debugging.
|
merge, mergeasIntpublic Range(int fst,
int ovr)
public Range(int fst,
int ovr,
int step)
public int position()
SeriesSeries.hasNone(), the series was finite and position()
is now its length.public boolean hasSome()
SeriesSeries.elt())?
Also see Series.hasNone().public Value.Int elt()
Series.Discreteelt_n().elt in class Series.Discretepublic int elt_n()
Series.Discreteelt_n in class Series.Discretepublic void advance()
SeriesSeries.hasSome().