Generates a sequence of integral numbers within the (inclusive) specified range. If sequence is ascending the step is +1, otherwise -1.
Namespace: MoreLinqMoreLinq (in MoreLinq.dll) Version: 3.0.0
Syntaxpublic static IEnumerable<int> Sequence( int start, int stop )
Public Shared Function Sequence ( start As Integer, stop As Integer ) As IEnumerable(Of Integer)
public: static IEnumerable<int>^ Sequence( int start, int stop )
static member Sequence : start : int * stop : int -> IEnumerable<int>Parameters
Type:
IEnumerableInt32An
IEnumerableTthat contains a range of sequential integral numbers.
RemarksThis operator uses deferred execution and streams its results.
Examplesvar result = MoreEnumerable.Sequence(6, 0);
The
resultvariable will contain
{ 6, 5, 4, 3, 2, 1, 0 }.
See AlsoRetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4