Returns a pair of sequences, where the first contains all the elements of this sequence that satisfy the predicate function,
and the second contains the elements that don't.
Namespace: SequencesAssembly: Sequences (in Sequences.dll) Version: 1.0.1.0 (1.0.1)
Syntax Tuple<ISequence<T>, ISequence<T>> Partition(
Func<T, bool> predicate
)
Tuple<ISequence<T>, ISequence<T>> Partition(
Func<T, bool> predicate
)
Function Partition (
predicate As Func(Of T, Boolean)
) As Tuple(Of ISequence(Of T), ISequence(Of T))
Function Partition (
predicate As Func(Of T, Boolean)
) As Tuple(Of ISequence(Of T), ISequence(Of T))
Tuple<ISequence<T>^, ISequence<T>^>^ Partition(
Func<T, bool>^ predicate
)
Tuple<ISequence<T>^, ISequence<T>^>^ Partition(
Func<T, bool>^ predicate
)
abstract Partition :
predicate : Func<'T, bool> -> Tuple<ISequence<'T>, ISequence<'T>>
abstract Partition :
predicate : Func<'T, bool> -> Tuple<ISequence<'T>, ISequence<'T>>
Parameters
- predicate
- Type: System Func T, Boolean
The predicate used to partition the elements.
Return Value
Type:
Tuple ISequence T ,
ISequence T A pair of sequences with the elements that satisfy
predicate and the elements that don't.
See Also