Contiguous |
public struct ContiguousIntegerRange : IContiguousIntegerRange, IReadOnlyList<int>, IReadOnlyCollection<int>, IEnumerable<int>, IEnumerable, IAscendingIntegerCollection, ICloneable
The ContiguousIntegerRange type exposes the following members.
Name | Description | |
---|---|---|
ContiguousIntegerRange | Constructs an integer range from another integer range. |
Name | Description | |
---|---|---|
Count | Number of elements of the integer range.Thus the integer range contains Start, Start+1, .. Start+Count-1. | |
Empty | Gets a standard empty integer range (Start and Count set to zero). | |
EndExclusive | Element immmediately after the last valid element (is equal to Start+Count). | |
First | Start value of the integer range. | |
IsEmpty | Returns true if the range is empty, i.e. has no elements. | |
IsReadOnly | ||
Item | ||
LastInclusive | Last valid element of the integer range (is equal to Start+Count-1). | |
LongCount | Number of elements of the integer range.Thus the integer range contains Start, Start+1, .. Start+Count-1. | |
RangesAscending | ||
RangesDescending | ||
Start | Start value of the integer range. |
Name | Description | |
---|---|---|
Add | ||
Clear | ||
Clone | ||
Contains | ||
CopyTo | ||
Equals | Indicates whether this instance and a specified object are equal. (Inherited from ValueType) | |
FromFirstAndLastInclusive | Constructs an integer range from the first and the last element of the range. Note that because last has to be greater than or equal to start, it is not possible to create an empty range with this method. | |
FromStartAndCount | Constructs an integer range from the first element and the number of element of the range. An empty range (with start=0 and count=0) is constructed if count is zero. | |
FromStartAndEndExclusive | Constructs an integer range from the first element and the element following immediately after the last element. An empty range (with start=0 and count=0) is constructed if start is equal to end. | |
GetEnumerator | ||
GetHashCode | Returns the hash code for this instance. (Inherited from ValueType) | |
GetType | Gets the Type of the current instance. (Inherited from Object) | |
IndexOf | ||
Insert | ||
Remove | ||
RemoveAt | ||
ToString | Returns the fully qualified type name of this instance. (Inherited from ValueType) |
Name | Description | |
---|---|---|
ElementsAtInt32 | (Defined by VectorMath) | |
ElementsWhereInt32 | (Defined by VectorMath) | |
ElementsWhereInt32 | (Defined by VectorMath) | |
FirstOrInt32 |
Returns the first value of the enumeration, or, if the enumeration is empty, the other value provided in the arguments.
(Defined by EnumerableExtensions) | |
FlattenFromRootToLeavesInt32 |
Converts a recursive data structure into a flat list. The root element is enumerated before its corresponding child element(s).
(Defined by EnumerableExtensions) | |
ForEachDoInt32 |
Executes an action for each element of the sequence.
(Defined by EnumerableExtensions) | |
GetPossibleStepsToMoveTowardsHigherIndicesInt32 |
Return the number of steps that selected items can be moved towards higher indices. The selected item with the highest index determines that value.
(Defined by ListExtensions) | |
GetPossibleStepsToMoveTowardsLowerIndicesInt32 |
Return the number of steps that selected items can be moved towards lower indices. The selected item with the lowest index determines that value.
(Defined by ListExtensions) | |
HasSingleElementInt32 |
Determines whether the specified enumeration has exactly one element.
(Defined by EnumerableExtensions) | |
IndexOfInt32 |
Gets the index of an item in a enumeration or list.
(Defined by ListExtensions) | |
IndexOfFirstInt32 |
Gets the index the of first item in list that fulfills the predicate predicate (Defined by ListExtensions) | |
IndexOfFirstInt32 |
Gets the index the of first item in list that fulfills the predicate predicate (Defined by ListExtensions) | |
IndexOfMaxInt32 | Return the index of the element with the maximum value in an enumerable.
If multiple elements with the same minimal value exist, the index of the first element in the sequence is returned. (Defined by EnumerableExtensions) | |
IndexOfMinInt32 | Return the index of the element with the minimum value in an enumerable.
If multiple elements with the same minimal value exist, the index of the first element in the sequence is returned. (Defined by EnumerableExtensions) | |
IndicesInt32AndValuesWhereInt32 |
Returns tuples of index and element of all elements in an enumeration which fullfill a given condition, given by the element's value.
(Defined by EnumerableExtensions) | |
IndicesInt32AndValuesWhereInt32 |
Returns tuples of index and element of all elements in an enumeration which fullfill a given condition, given by the element's value and its index.
(Defined by EnumerableExtensions) | |
IndicesInt32WhereInt32 |
Returns the indices of the elements which fullfill a given condition, given by the element's value.
(Defined by EnumerableExtensions) | |
IndicesInt32WhereInt32 |
Returns the indices of the elements which fullfill a given condition, given by the element's value and its index.
(Defined by EnumerableExtensions) | |
IndicesOfMinMaxInt32 | Return the index of the element with the minimum value in an enumerable.
If multiple elements with the same minimal value exist, the index of the first element in the sequence is returned. (Defined by EnumerableExtensions) | |
IsEmptyInt32 |
Determines whether the specified enumeration is empty.
(Defined by EnumerableExtensions) | |
JoinConditionalInt32, T2 |
Takes a join of two sequences, but only takes into account those pair, which fulfill a given condition.
(Defined by EnumerableExtensions) | |
JoinConditionalInt32, T2, TResult |
Takes a join of two sequences, but only takes into account those pair, which fulfill a given condition.
(Defined by EnumerableExtensions) | |
LastOrInt32 |
Returns the last value of the enumeration, or, if the enumeration is empty, the other value provided in the arguments.
(Defined by EnumerableExtensions) | |
MaxElementInt32, M |
Gets the element of a IEnumerabe that evaluates by means of a conversion function to the maximal value.
This is different from Select(x => conversion(x)).Max() insofar as it not returns the maximum value, but the original element x which converts to the maximum value.
(Defined by EnumerableExtensions) | |
MaxOrDefaultInt32, M |
Evaluates the maximum of a enumeration of elements, or returns a default value if the series is empty.
(Defined by EnumerableExtensions) | |
SelectCombinationInt32 |
Select a random combination, without repetition, from a data sequence by selecting k elements in original order.
(Defined by Combinatorics) | |
SelectCombinationWithRepetitionInt32 |
Select a random combination, with repetition, from a data sequence by selecting k elements in original order.
(Defined by Combinatorics) | |
SelectPermutationInt32 |
Select a random permutation from a data sequence by returning the provided data in random order.
Implemented using Fisher-Yates Shuffling.
(Defined by Combinatorics) | |
SelectVariationInt32 |
Select a random variation, without repetition, from a data sequence by randomly selecting k elements in random order.
Implemented using partial Fisher-Yates Shuffling.
(Defined by Combinatorics) | |
SelectVariationWithRepetitionInt32 |
Select a random variation, with repetition, from a data sequence by randomly selecting k elements in random order.
(Defined by Combinatorics) | |
TakeAllButLastInt32 |
Takes all elements of the enumeration except the last element.
(Defined by EnumerableExtensions) | |
ThisOrEmptyInt32 |
Returns either the provided enumeration, or if it is null, an empty enumeration.
(Defined by EnumerableExtensions) | |
ToInverseROVector |
Wraps a Int32[] array to get an IReadOnlyListT with elements = 1 / elements of the original vector.
(Defined by VectorMath) | |
ToInverseROVector |
Wraps a Int32[] array till a given length to get an IReadOnlyListT with elements = 1 / elements of the original vector.
(Defined by VectorMath) | |
ToROVector |
Wraps a section of an original vector into a new vector.
(Defined by VectorMath) | |
TryGetFirstAndLastInt32 |
Returns true and the first and last value of the enumeration, or, if the enumeration is empty, returns false.
(Defined by EnumerableExtensions) | |
TryGetSingleElementInt32 |
Try to get the one and only element of the collection.
(Defined by EnumerableExtensions) |