Ascending |
public class AscendingIntegerCollection : IAscendingIntegerCollection, ICloneable, IReadOnlyList<int>, IEnumerable<int>, IEnumerable, IReadOnlyCollection<int>
The AscendingIntegerCollection type exposes the following members.
| Name | Description | |
|---|---|---|
| AscendingIntegerCollection | Creates an empty collection. | |
| AscendingIntegerCollection(AscendingIntegerCollection) | Creates a collection cloned from another AscendingIntegerCollection. | |
| AscendingIntegerCollection(IAscendingIntegerCollection) | Creates the collection copied from another IAscendingIntegerCollection. | |
| AscendingIntegerCollection(IEnumerableInt32) | Creates the collection with some initial values. |
| Name | Description | |
|---|---|---|
| Count | Number of integer values stored in this collection | |
| Item |
Returns the integer stored at position C# i | |
| RangesAscending | Enumerates all contiguous integer ranges in ascending order. | |
| RangesDescending | Enumerates all contiguous integer ranges in descending order. |
| Name | Description | |
|---|---|---|
| Add(IAscendingIntegerCollection) | Adds all values from another IAscendingIntegerCollection. | |
| Add(Int32) | Adds an integer value to the collection. | |
| AddRange | Adds an integer range given by start and count to the collection. | |
| Clear | Clears the collection, i.e. removes all entries. | |
| Clone | Creates a new object that is a copy of the current instance. | |
| Contains | Determines whether the specified integer value is contained in this collection. | |
| Equals | Determines whether the specified object is equal to the current object. (Inherited from Object) | |
| Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object) | |
| FromStartAndCount | Creates an instance from the start value and the count value. | |
| GetEnumerator | Returns an enumerator that iterates through the collection. | |
| GetHashCode | Serves as the default hash function. (Inherited from Object) | |
| GetNextRangeAscending | Get the next range (i.e. a contiguous range of integers) in ascending order. | |
| GetNextRangeDescending | Get the next range (i.e. a contiguous range of integers) in descending order. | |
| GetRangeCount | Returns the number of integer ranges this collection represents. | |
| GetType | Gets the Type of the current instance. (Inherited from Object) | |
| MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object) | |
| Remove | Removes an integer value from the collection. | |
| RemoveAllAbove | Removes all integers above the specified maximum value from the collection. | |
| RemoveAt | Removes an integer at a given position from the collection (e.g. in general not the integer you provide as argument is removed (!)). | |
| ToString | Returns a string that represents the current object. (Inherited from Object) |
| 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 |
Returns 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 |
Returns 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) | |
| GetSameOrDefaultInt32, S |
Gets the same element if all elements of the enumeration (after a transformation) are the same. If the elements in the enumeration are different, the return value is null or default.
(Defined by EnumerableExtensions) | |
| HasSingleElementInt32 |
Determines whether the specified enumeration has exactly one element.
(Defined by EnumerableExtensions) | |
| IndexOfInt32 |
Gets the index of an item in an enumeration or list.
(Defined by ListExtensions) | |
| IndexOfFirstInt32 |
Gets the index of the first item in list that fulfills the predicate predicate.
(Defined by ListExtensions) | |
| IndexOfFirstInt32 |
Gets the index of the 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 |
Evaluates the maximum of a enumeration of elements, or returns a default value if the series is empty.
(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) | |
| MinOrDefaultInt32 |
Evaluates the minimum 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) | |
| ToROSubVectorInt32 |
Creates a subvector of the read-only 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) |