ops library

Classes

IterableRangeBounds
Range
A (half-open) range bounded inclusively below and exclusively above (start..end). The range contains all values with start <= x < end. It is empty if start >= end.
RangeBounds
RangeFrom
A range only bounded inclusively below (start..). Contains all values with x >= start. Note: This will not overflow, the last value yielded will be the largest possible int _intMaxValue.
RangeFull
An unbounded range (..). RangeFull is used as a slicing index, it cannot be used as an Iterable because it doesn’t have a starting point.
RangeInclusive
A range bounded inclusively below and above (start..=end). Contains all values with x >= start and x <= end. It is empty unless start <= end.
RangeIterator
RangeTo
A range only bounded exclusively above (..end). The RangeTo ..end contains all values with x < end. It cannot be used as an Iterable because it doesn’t have a starting point.
RangeToInclusive
A range only bounded inclusively above (..=end). The RangeToInclusive ..=end contains all values with x <= end. It cannot serve as an Iterable because it doesn’t have a starting point.

Extensions

ListRangeExtension on List<T>
RecordExtension1 on (A)
RecordExtension10 on (A, B, C, D, E, F, G, H, I, J)
RecordExtension2 on (A, B)
RecordExtension3 on (A, B, C)
RecordExtension4 on (A, B, C, D)
RecordExtension5 on (A, B, C, D, E)
RecordExtension6 on (A, B, C, D, E, F)
RecordExtension7 on (A, B, C, D, E, F, G)
RecordExtension8 on (A, B, C, D, E, F, G, H)
RecordExtension9 on (A, B, C, D, E, F, G, H, I)

Functions

range(int startOrEnd, [int? end, int? step]) Iterable<int>
A generator over a range by a step size. If end is not provided, the generated range will be [0..startOrEnd) if startOrEnd > 0, and nothing is generated otherwise. If step is not provided, step will be -1 if 0 > startOrEnd and 1 if 0 < startOrEnd. For reference, it works the same as the python range function.