Creates a sequence containing equally spaced values in some integer interval.
Namespace: SequencesAssembly: Sequences (in Sequences.dll) Version: 1.0.1.0 (1.0.1)
Syntax public static ISequence<int> Range(
int start,
int end,
int step
)
public static ISequence<int> Range(
int start,
int end,
int step
)
Public Shared Function Range (
start As Integer,
end As Integer,
step As Integer
) As ISequence(Of Integer)
Public Shared Function Range (
start As Integer,
end As Integer,
step As Integer
) As ISequence(Of Integer)
public:
static ISequence<int>^ Range(
int start,
int end,
int step
)
public:
static ISequence<int>^ Range(
int start,
int end,
int step
)
static member Range :
start : int *
end : int *
step : int -> ISequence<int>
static member Range :
start : int *
end : int *
step : int -> ISequence<int>
Parameters
- start
- Type: System Int32
The start value of the collection.
- end
- Type: System Int32
The exclusive upper bound.
- step
- Type: System Int32
The value to increment in each step (positive or negative).
Return Value
Type:
ISequence Int32 A collection with values
start,
start +
step, ...
up to, but excluding
end.
See Also