Algorithms..::..StablePartition<(Of <(<'T>)>)> Method
Partition a list or array based on a predicate. After partitioning, all items for which
the predicate returned true precede all items for which the predicate returned false.
The partition is stable, which means that if items X and Y have the same result from
the predicate, and X precedes Y in the original list, X will precede Y in the
partitioned list.
Namespace:
Wintellect.PowerCollections
Assembly:
PowerCollections (in PowerCollections.dll)
Syntax
Type Parameters
- T
Parameters
- list
- Type: IList<(Of <(<'T>)>)>
The list or array to partition.
- predicate
- Type: Predicate<(Of <(<'T>)>)>
A delegate that defines the partitioning condition.