C# Класс FP.Core.Ints

Static methods for generating sequences of ints and other convenience methods.
Показать файл Открыть проект

Открытые методы

Метод Описание
From ( int start ) : IEnumerable

Generates a sequence of integral numbers starting with a specified number.

From ( int start, int step ) : IEnumerable

Generates a sequence of integral numbers starting with a specified number with a specified step.

Range ( int start, int end ) : IEnumerable

Generates a sequence of integral numbers starting and ending with a specified number.

Range ( int start, int end, int step ) : IEnumerable

Generates a sequence of integral numbers starting and ending with a specified number with a specified step.

Times ( this self, System.Action action ) : void

Performs an action several times.

Описание методов

From() публичный статический Метод

Generates a sequence of integral numbers starting with a specified number.
public static From ( int start ) : IEnumerable
start int The value of the first integer in the sequence.
Результат IEnumerable

From() публичный статический Метод

Generates a sequence of integral numbers starting with a specified number with a specified step.
if equals 0. ///
public static From ( int start, int step ) : IEnumerable
start int The value of the first integer in the sequence.
step int The difference between two consequent elements of the /// sequence.
Результат IEnumerable

Range() публичный статический Метод

Generates a sequence of integral numbers starting and ending with a specified number.
public static Range ( int start, int end ) : IEnumerable
start int The value of the first integer in the sequence.
end int The value of the last integer in the sequence.
Результат IEnumerable

Range() публичный статический Метод

Generates a sequence of integral numbers starting and ending with a specified number with a specified step.
if equals 0 /// or has a different sign from - .
public static Range ( int start, int end, int step ) : IEnumerable
start int The value of the first integer in the sequence.
end int The value of the last integer in the sequence.
step int The difference between two consequent elements of the /// sequence.
Результат IEnumerable

Times() публичный статический Метод

Performs an action several times.
public static Times ( this self, System.Action action ) : void
self this The number of times.
action System.Action The action.
Результат void