AlgorithmsMergeSortedT Method (ComparisonT, IEnumerableT) |
Merge several sorted collections into a single sorted collection. Each input collection must be sorted
by the ordering in the passed Comparison<T> delegate. The merging
is stable; equal items maintain their ordering, and equal items in different collections are placed
in the order of the collections.
Namespace: X3Platform.CollectionsAssembly: X3Platform.Support (in X3Platform.Support.dll) Version: 1.0.0.0 (2.0.0.0)
Syntaxpublic static IEnumerable<T> MergeSorted<T>(
Comparison<T> comparison,
params IEnumerable<T>[] collections
)
public:
generic<typename T>
static IEnumerable<T>^ MergeSorted(
Comparison<T>^ comparison,
... array<IEnumerable<T>^>^ collections
)
Parameters
- comparison
- Type: SystemComparisonT
The comparison delegate used to sort the collections. - collections
- Type: System.Collections.GenericIEnumerableT
The set of collections to merge. In many languages, this parameter
can be specified as several individual parameters.
Type Parameters
- T
[Missing <typeparam name="T"/> documentation for "M:X3Platform.Collections.Algorithms.MergeSorted``1(System.Comparison{``0},System.Collections.Generic.IEnumerable{``0}[])"]
Return Value
Type:
IEnumerableTAn IEnumerable<T> that enumerates all the items in all the collections
in sorted order.
See Also