- BigIntegerRange
- CharRange
- DecimalRange
- DoubleRange
- FloatRange
- IntegerRange
- LongRange
- Range <SELF, MonoidOrdA, A>
- Zero = FromMinMax(default(MonoidOrdA).Empty(), default(MonoidOrdA).Empty(), default(MonoidOrdA).Empty())
- 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 ()
- AsEnumerable ()
- GetEnumerator ()
- Fold <S> (S state, Func<S, A, S> f)
- ShortRange
class BigIntegerRange Source #
field char Minus1 = unchecked((char)-1) Source #
method CharRange FromMinMax (char min, char max) Source #
Construct a new range
param | from | The minimum value in the range |
param | to | The maximum value in the range |
class DecimalRange Source #
class DoubleRange Source #
class FloatRange Source #
class IntegerRange Source #
class Range <SELF, MonoidOrdA, A> Source #
Represents a range of values
type | SELF | The type that is deriving from this type |
type | MonoidOrdA | Monoid of A class instance |
type | A | Bound values type |
field SELF Zero = FromMinMax(default(MonoidOrdA).Empty(), default(MonoidOrdA).Empty(), default(MonoidOrdA).Empty()) Source #
Zero range using MonoidOrdA.Empty()
field 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 IEnumerable<A> AsEnumerable () Source #
method IEnumerator<A> GetEnumerator () Source #
class ShortRange Source #