A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://morelinq.github.io/3.0/ref/api/html/M_MoreLinq_MoreEnumerable_Sequence.htm below:

MoreEnumerableSequence Method (Int32, Int32)

Generates a sequence of integral numbers within the (inclusive) specified range. If sequence is ascending the step is +1, otherwise -1.

Namespace:  MoreLinq
Assembly:

MoreLinq (in MoreLinq.dll) Version: 3.0.0

Syntax
public 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
start
Type: SystemInt32
The value of the first integer in the sequence.
stop
Type: SystemInt32
The value of the last integer in the sequence.
Return Value

Type:

IEnumerableInt32

An

IEnumerableT

that contains a range of sequential integral numbers.

Remarks

This operator uses deferred execution and streams its results.

Examples
var result = MoreEnumerable.Sequence(6, 0);

The

result

variable will contain

{ 6, 5, 4, 3, 2, 1, 0 }

.

See Also

RetroSearch 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