C# Class FP.Core.Ints

Static methods for generating sequences of ints and other convenience methods.
Show file Open project: lukesandberg/PexFaultLocalization

Public Methods

Method Description
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.

Method Details

From() public static method

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.
return IEnumerable

From() public static method

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.
return IEnumerable

Range() public static method

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.
return IEnumerable

Range() public static method

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.
return IEnumerable

Times() public static method

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.
return void