- Range <SELF, NumOrdA, A>
- New (A from, A to, A step)
- Zero = FromMinMax(NumOrdA.FromInteger(0), NumOrdA.FromInteger(0), NumOrdA.FromInteger(0))
- From
- To
- Step
- StepIsAscending
- Case
- FromMinMax (A min, A max, A step)
- FromCount (A min, A count, A step)
- InRange (A value)
- Overlaps (SELF other)
- ToSeq ()
- AsIterable ()
- Fold <S> (S state, Func<S, A, S> f)
interface Range <SELF, NumOrdA, A> Source #
field SELF Zero = FromMinMax(NumOrdA.FromInteger(0), NumOrdA.FromInteger(0), NumOrdA.FromInteger(0)) Source #
Zero range
property bool StepIsAscending Source #
True if adding Step
to n
makes the resulting value greater than n
method SELF FromMinMax (A min, A max, A step) Source #
Construct a new range
param | from | The minimum value in the range |
param | to | The maximum value in the range |
param | step | The size of each step in the range |
method SELF FromCount (A min, A count, A step) Source #
Construct a new range
param | from | The minimum value in the range |
param | count | The number of items in the range |
param | step | The size of each step in the range |
method bool InRange (A value) Source #
Returns true if the value provided is in range
param | value | Value to test |
returns | True if the value provided is in range |
method bool Overlaps (SELF other) Source #
Returns true if the range provided overlaps this range
param | other | The range to test |
returns | True if the range provided overlaps this range |
method Iterable<A> AsIterable () Source #