MultiCollectionT Class |
Namespace: WhetStone.Looping
public class MultiCollection<T> : ICollection<T>, IEnumerable<T>, IEnumerable
The MultiCollectionT type exposes the following members.
| Name | Description | |
|---|---|---|
| MultiCollectionT |
Constructor
|
| Name | Description | |
|---|---|---|
| Count | Gets the number of elements contained in the ICollectionT. | |
| IsReadOnly | Gets a value indicating whether the ICollectionT is read-only. | |
| Item |
Get an indexed element from the ICollectionT.
|
| Name | Description | |
|---|---|---|
| Add(T) | Adds an item to the ICollectionT. | |
| Add(T, Int32) |
Add an item to the ICollectionT | |
| Clear | Removes all items from the ICollectionT. | |
| Contains | Determines whether the ICollectionT contains a specific value. | |
| CopyTo | ||
| 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.) | |
| GetEnumerator | Returns an enumerator that iterates through the collection. | |
| GetHashCode | Serves as the default hash function. (Inherited from Object.) | |
| GetType | Gets the Type of the current instance. (Inherited from Object.) | |
| MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
| Remove(T) | Removes the first occurrence of a specific object from the ICollectionT. | |
| Remove(T, Int32) |
Removes a value from the collection.
| |
| ToString | Returns a string that represents the current object. (Inherited from Object.) |
| Name | Description | |
|---|---|---|
| AllEqualT(IEqualityComparerT) | Overloaded.
Checks whether all members of an IEnumerableT are equal.
(Defined by allEqual.) | |
| AllEqualT(T, IEqualityComparerT) | Overloaded.
Checks whether all members of an IEnumerableT are equal to a value.
(Defined by allEqual.) | |
| AnyAndAllT |
Checks that all members of the IEnumerableT are (when subject to cond) and that the IEnumerableT is not empty.
(Defined by anyAndAll.) | |
| AsCollectionT |
Tries to cast or wrap this in a collection adapter.
(Defined by asCollection.) | |
| AsListT |
Tries to cast or wrap this in a list adapter.
(Defined by asList.) | |
| AsyncDoT(ActionT) | Overloaded.
Enumerates and applies action on an IEnumerableT in parallel.
(Defined by asyncDo.) | |
| AsyncDoT(ActionT, ParallelLoopState) | Overloaded.
Enumerates and applies action on an IEnumerableT in parallel.
(Defined by asyncDo.) | |
| AsyncDoT(ActionT, Int64) | Overloaded.
Enumerates and applies action on an IEnumerableT in parallel.
(Defined by asyncDo.) | |
| AsyncDoT(ActionT, ParallelLoopState, Int64) | Overloaded.
Enumerates and applies action on an IEnumerableT in parallel.
(Defined by asyncDo.) | |
| AsyncDoT(ActionT, Int32) | Overloaded.
Enumerates and applies action on an IEnumerableT in parallel.
(Defined by asyncDo.) | |
| AsyncDoT(ActionT, ParallelLoopState, Int32) | Overloaded.
Enumerates and applies action on an IEnumerableT in parallel.
(Defined by asyncDo.) | |
| AsyncDoT(ActionT, Int64, Int32) | Overloaded.
Enumerates and applies action on an IEnumerableT in parallel.
(Defined by asyncDo.) | |
| AsyncDoT(ActionT, ParallelLoopState, Int64, Int32) | Overloaded.
Enumerates and applies action on an IEnumerableT in parallel.
(Defined by asyncDo.) | |
| AsyncDoT(ActionT, ParallelOptions) | Overloaded.
Enumerates and applies action on an IEnumerableT in parallel.
(Defined by asyncDo.) | |
| AsyncDoT(ActionT, ParallelLoopState, ParallelOptions) | Overloaded.
Enumerates and applies action on an IEnumerableT in parallel.
(Defined by asyncDo.) | |
| AsyncDoT(ActionT, Int64, ParallelOptions) | Overloaded.
Enumerates and applies action on an IEnumerableT in parallel.
(Defined by asyncDo.) | |
| AsyncDoT(ActionT, ParallelLoopState, Int64, ParallelOptions) | Overloaded.
Enumerates and applies action on an IEnumerableT in parallel.
(Defined by asyncDo.) | |
| AttachT, T2 |
Turns each element in an IEnumerableT to a tuple including itself and an output of itself and a selector function.
(Defined by attach.) | |
| AttachAggregateT, R |
Attaches a new IEnumerableT to the original IEnumerableT, created with an aggregator function.
(Defined by attachAggregate.) | |
| BalancedT(IEnumerableTupleT, T, NullableInt32) | Overloaded.
Checks whether an IEnumerableT is balanced, in terms of openers and closers.
(Defined by balanced.) | |
| BalancedT(IEnumerableT, IEnumerableT, NullableInt32) | Overloaded.
Checks whether an IEnumerableT is balanced, in terms of openers and closers.
(Defined by balanced.) | |
| BalancedT(T, T, NullableInt32) | Overloaded.
Checks whether an IEnumerableT is balanced, in terms of openers and closers.
(Defined by balanced.) | |
| CacheT |
Caches the IEnumerableT, causing it to enumerate once at most.
(Defined by cache.) | |
| CacheCountT |
Caches only the count of an IEnumerableT, making only enumerate once at most in case of multiple CountTSource(IEnumerableTSource) calls.
(Defined by cacheCount.) | |
| ChunkT |
Transforms the list by grouping adjacent elements together into a single member.
(Defined by chunk.) | |
| CompareCountT, T1 |
Compares the lengths of two IEnumerableTs, avoiding enumerating more than needed.
(Defined by compareCount.) | |
| CountT(T, IEqualityComparerT) | Overloaded.
Counts the number of times target appears in this.
(Defined by count.) | |
| CountT(IEnumerableT, IEqualityComparerIEnumerableT) | Overloaded.
Count the number of sub-enumerables in this that are equal to target.
(Defined by count.) | |
| CountAtLeastT | (Defined by countAtleast.) | |
| CountBindT(Int32) | Overloaded.
Attaches indices to elements of an ICollectionT.
(Defined by countBind.) | |
| CountBindT(Int32) | Overloaded.
Attaches indices to elements of an IEnumerableT.
(Defined by countBind.) | |
| CountBindT, C(C) | Overloaded.
Attaches indices to elements of an ICollectionT. Indexes are of any type and use fielding to increment.
(Defined by countBind.) | |
| CountBindT, C(C) | Overloaded.
Attaches indices to elements of an IEnumerableT. Indexes are of any type and use fielding to increment.
(Defined by countBind.) | |
| CoverT(T) | Overloaded.
Get an IEnumerableT that has its first members replaced with cover's members.
(Defined by cover.) | |
| CoverT(IEnumerableT, Int32) | Overloaded. (Defined by cover.) | |
| CoverT(IEnumerableT, IEnumerableInt32) | Overloaded. (Defined by cover.) | |
| CoverT(T, Int32) | Overloaded. (Defined by cover.) | |
| CycleT |
Gets a new IEnumerableT, that is this repeated.
(Defined by cycle.) | |
| DistinctSortedT |
Filters the sorted IEnumerableT of any duplicates.
(Defined by distinct.) | |
| DoT |
Enumerates the entire IEnumerableT and applies a method to it.
(Defined by do.) | |
| DuplicatesT |
Filters out all elements in an IEnumerableT that don't appear enough times.
(Defined by duplicates.) | |
| DuplicatesSortedT |
Filters out all elements in a sorted IEnumerableT that don't appear enough times.
(Defined by duplicates.) | |
| EditDistanceT |
Gets the minimum number of edit steps to transform this to other.
(Defined by editDistance.) | |
| EditStepsT |
Get the edit steps in the shortest edit path from this to other.
(Defined by editDistance.) | |
| EnumerationHookT(FuncT, Boolean, FuncT, Boolean) | Overloaded.
Binds actions to an IEnumerableT, causing the action to call whenever the IEnumerableT is enumerated.
(Defined by enumerationHook.) | |
| EnumerationHookT(ActionT, ActionT, Action, Action) | Overloaded.
Binds actions to an IEnumerableT, causing the action to call whenever the IEnumerableT is enumerated.
(Defined by enumerationHook.) | |
| FirstOrDefaultT(T) | Overloaded.
Get the IEnumerableT's first value or a default value.
(Defined by first.) | |
| FirstOrDefaultT(FuncT, Boolean, T) | Overloaded.
Get the IEnumerableT's first value to fulfill a condition or a default value.
(Defined by first.) | |
| FirstOrDefaultT(FuncT, Boolean, Boolean, T) | Overloaded.
Get the IEnumerableT's first value to fulfill a condition or a default value.
(Defined by first.) | |
| GetAverageT |
Get arithmetic average of an IEnumerableT using fielding.
(Defined by getAverage.) | |
| GetCompensatingSumT |
Get the sum of all elements in an IEnumerableT with floating point compensation.
(Defined by getSum.) | |
| GetGeometricAverageT |
Get geometric average of an IEnumerableT using fielding.
(Defined by getAverage.) | |
| GetMaxT(IComparerT) | Overloaded.
Get the largest element in an IEnumerableT.
(Defined by getMax.) | |
| GetMaxT(Int32) | Overloaded.
Get the largest element in an IEnumerableT.
(Defined by getMax.) | |
| GetMaxT(IComparerT, Int32) | Overloaded.
Get the largest element in an IEnumerableT.
(Defined by getMax.) | |
| GetMinT(IComparerT) | Overloaded.
Get the smallest element in an IEnumerableT.
(Defined by getMin.) | |
| GetMinT(Int32) | Overloaded.
Get the smallest element in an IEnumerableT.
(Defined by getMin.) | |
| GetMinT(IComparerT, Int32) | Overloaded.
Get the smallest element in an IEnumerableT.
(Defined by getMin.) | |
| GetProductT |
Get the product of all elements in an IEnumerableT using fielding.
(Defined by getProduct.) | |
| GetSumT |
Get the sum of all elements in an IEnumerableT using fielding.
(Defined by getSum.) | |
| HookAggregateT, R |
Hooks an aggregate value to an IGuardT, to be recalculated upon enumeration.
(Defined by hookAggregate.) | |
| HookCountT |
Hooks an IGuardT's value to an IEnumerableT's number of enumerated items that match a criteria.
(Defined by hookCount.) | |
| HookFirstT(IGuardTupleT) | Overloaded.
Hooks an IGuardT to an IEnumerableT's first value.
(Defined by hookFirst.) | |
| HookFirstT(IGuardT) | Overloaded.
Hooks an IGuardT to an IEnumerableT's first value.
(Defined by hookFirst.) | |
| HookFirstT(IGuardTupleT, FuncT, Boolean) | Overloaded.
Hooks an IGuardT to an IEnumerableT's first value that matches a criteria.
(Defined by hookFirst.) | |
| HookFirstT(IGuardT, FuncT, Boolean) | Overloaded.
Hooks an IGuardT to an IEnumerableT's first value that matches a criteria.
(Defined by hookFirst.) | |
| HookLastT(IGuardTupleT) | Overloaded.
Hooks an IGuardT to an IEnumerableT's last value.
(Defined by hookLast.) | |
| HookLastT(IGuardT) | Overloaded.
Hooks an IGuardT to an IEnumerableT's last value.
(Defined by hookLast.) | |
| HookLastT(IGuardTupleT, FuncT, Boolean) | Overloaded.
Hooks an IGuardT to an IEnumerableT's last value that matches a criteria.
(Defined by hookLast.) | |
| HookLastT(IGuardT, FuncT, Boolean) | Overloaded.
Hooks an IGuardT to an IEnumerableT's last value that matches a criteria.
(Defined by hookLast.) | |
| IsSortedT |
Get whether an IEnumerableT is sorted.
(Defined by isSorted.) | |
| JoinT(joinCartesianType) | Overloaded.
Get the Cartesian multiple of an IEnumerableT by itself.
(Defined by join.) | |
| JoinT(Int32, joinCartesianType) | Overloaded.
Get an IEnumerableT multiplied by itself multiple times.
(Defined by join.) | |
| JoinT, T2(IEnumerableT2) | Overloaded.
Get the Cartesian multiple of two IEnumerableTs.
(Defined by join.) | |
| JoinT, T2, T3(IEnumerableT2, IEnumerableT3) | Overloaded.
Get the Cartesian multiple of two IEnumerableTs.
(Defined by join.) | |
| LastOrDefaultT(T) | Overloaded.
Get the last element in an IEnumerableT (Defined by last.) | |
| LastOrDefaultT(FuncT, Boolean, T) | Overloaded.
Get the last element in an IEnumerableT to fulfill a condition.
(Defined by last.) | |
| LastOrDefaultT(FuncT, Boolean, Boolean, T) | Overloaded.
Get the last element in an IEnumerableT to fulfill a condition.
(Defined by last.) | |
| LongestCommonPrefixT(IEnumerableT) | Overloaded.
Get the longest common prefix of two IEnumerableTs.
(Defined by longestCommonPrefix.) | |
| LongestCommonPrefixT(IEnumerableT, IEqualityComparerT) | Overloaded.
Get the longest common prefixes of two IEnumerableTs.
(Defined by longestCommonPrefix.) | |
| MergeT |
Combines two sorted IEnumerableTs to a single sorted IEnumerableT.
(Defined by merge.) | |
| OrderByT |
Returns an IOrderedEnumerableTElement from an IEnumerableT.
(Defined by orderBy.) | |
| OrderByDescendingT |
Returns an IOrderedEnumerableTElement in descending order from an IEnumerableT.
(Defined by orderBy.) | |
| PartialCompensatingSumsT |
Get the partial sums of an IEnumerableT while compensating for floating-point errors.
(Defined by partialSums.) | |
| PartialProductsT |
Get the partial products of an IEnumerableT.
(Defined by partialProducts.) | |
| PartialSumsT |
Get the partial sum of an IEnumerableT.
(Defined by partialSums.) | |
| PickT(RandomGenerator) | Overloaded.
Get a random element in an IEnumerableT.
(Defined by pick.) | |
| PickT(Int32, RandomGenerator) | Overloaded.
Get random elements in an IEnumerableT.
(Defined by pick.) | |
| PositionBindT |
Attaches positions to elements of an IEnumerableT.
(Defined by positionBind.) | |
| RecommendCountT |
Attempt to extract the size of an IEnumerableT without enumerating it.
(Defined by recommendSize.) | |
| SelectT, R(FuncT, R) | Overloaded.
Get a 1-1 mapping of an ICollectionT.
(Defined by select.) | |
| SelectT, R(FuncT, R, FuncR, T) | Overloaded.
Get a 1-1 invertible mapping of an ICollectionT.
(Defined by select.) | |
| SingleOrDefaultT |
Get the element of an IEnumerableT if it is alone, a default element if it empty, or throw exception otherwise.
(Defined by single.) | |
| SkipSliceT |
Get an IEnumerableT with elements in the middle removed.
(Defined by skipSlice.) | |
| SliceT |
Get a part from an IListT.
(Defined by slice.) | |
| SpliceT(T, Int32) | Overloaded.
Create an IEnumerableT with an element inserted into it.
(Defined by splice.) | |
| SpliceT(IEnumerableT, Int32) | Overloaded.
Create an IEnumerableT with another IEnumerableT inserted into it.
(Defined by splice.) | |
| SplitT(FuncIListT, T, Boolean) | Overloaded.
Split an IEnumerableT into sublists by capturing.
(Defined by split.) | |
| SplitT(FuncT, Boolean) | Overloaded.
Split an IEnumerableT by a divisor element.
(Defined by split.) | |
| SplitT(T, IEqualityComparerT) | Overloaded.
Split an IEnumerableT by a divisor element.
(Defined by split.) | |
| SplitAtT |
Split an IEnumerableT by sub-enumerable lengths.
(Defined by splitAt.) | |
| StartsWithT |
Get whether an IEnumerableT starts with another IEnumerableT.
(Defined by startsWith.) | |
| StepT |
Strides an IEnumerableT in steps.
(Defined by step.) | |
| StrConcatT |
Concatenates an IEnumerableT's elements in a readable manner.
(Defined by strConcat.) | |
| SubSetsT | Overloaded.
Get all the subsets from an IEnumerableT's elements.
(Defined by subsets.) | |
| SubSetsT(Int32) | Overloaded.
Get all the subsets from an IEnumerableT's elements of a specific size.
(Defined by subsets.) | |
| TakeWhileInclusiveT |
Take from an IEnumerableT until an element does not uphold a predicate. Then take that element as well.
(Defined by takeWhile.) | |
| TallyT |
Create a tally using an IEnumerableT as a default source.
(Defined by TallierExtensions.) | |
| ToArrayT |
Creates an Array and fills it with an IEnumerableT's elements.
(Defined by toArray.) | |
| ToLookupT |
Convert an IEnumerableT to ILookupTKey, TElement with identity.
(Defined by toLookup.) | |
| ToObjArray | (Defined by toObjArray.) | |
| ToOccurancesT |
Transforms an IEnumerableT into an IDictionaryTKey, TValue of TupleT1, T2 of members and their multiplicity.
(Defined by occurances.) | |
| ToOccurancesSortedT |
Transforms a sorted IEnumerableT into an IEnumerableT of TupleT1, T2 of members and their multiplicity.
(Defined by occurances.) | |
| ToTupleT1 | Overloaded.
Convert an IEnumerableT into a tuple of 1 member.
(Defined by toTuple.) | |
| ToTupleT1, T2 | Overloaded.
Convert an IEnumerableT into a tuple of 2 members.
(Defined by toTuple.) | |
| ToTupleT1, T2, T3 | Overloaded.
Convert an IEnumerableT into a tuple of 3 members.
(Defined by toTuple.) | |
| ToTupleT1, T2, T3, T4 | Overloaded.
Convert an IEnumerableT into a tuple of 4 members.
(Defined by toTuple.) | |
| ToTupleT1, T2, T3, T4, T5 | Overloaded.
Convert an IEnumerableT into a tuple of 5 members.
(Defined by toTuple.) | |
| TrailT |
Get all the sub-lists of an IEnumerableT of a specific length.
(Defined by trail.) | |
| YieldAggregateT, R |
Get all the partial aggregates of an IEnumerableT.
(Defined by yieldAggregate.) | |
| ZipT, T2(IEnumerableT2) | Overloaded.
Get all the elements in two IEnumerableTs spliced together.
(Defined by zip.) | |
| ZipT, T2, T3(IEnumerableT2, IEnumerableT3) | Overloaded.
Get all the elements in three IEnumerableTs spliced together.
(Defined by zip.) | |
| ZipT, T2, T3, T4(IEnumerableT2, IEnumerableT3, IEnumerableT4) | Overloaded.
Get all the elements in four IEnumerableTs spliced together.
(Defined by zip.) | |
| ZipT, T2, T3, T4, T5(IEnumerableT2, IEnumerableT3, IEnumerableT4, IEnumerableT5) | Overloaded.
Get all the elements in five IEnumerableTs spliced together.
(Defined by zip.) | |
| ZipUnBoundT, T2(IEnumerableT2, T, T2) | Overloaded.
Get all the elements in IEnumerableTs spliced together, continuing until they all end.
(Defined by zipUnBound.) | |
| ZipUnBoundT, T2, T3(IEnumerableT2, IEnumerableT3, T, T2, T3) | Overloaded.
Get all the elements in IEnumerableTs spliced together, continuing until they all end.
(Defined by zipUnBound.) | |
| ZipUnBoundTupleT, T2(IEnumerableT2) | Overloaded.
Get all the elements in IEnumerableTs spliced together, continuing until they all end.
(Defined by zipUnBound.) | |
| ZipUnBoundTupleT, T2, T3(IEnumerableT2, IEnumerableT3) | Overloaded.
Get all the elements in IEnumerableTs spliced together, continuing until they all end.
(Defined by zipUnBound.) |