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 public Tuple<ISequence<T>, ISequence<T>> Partition(
Func<T, bool> predicate
)
public Tuple<ISequence<T>, ISequence<T>> Partition(
Func<T, bool> predicate
)
Public Function Partition (
predicate As Func(Of T, Boolean)
) As Tuple(Of ISequence(Of T), ISequence(Of T))
Public Function Partition (
predicate As Func(Of T, Boolean)
) As Tuple(Of ISequence(Of T), ISequence(Of T))
public:
virtual Tuple<ISequence<T>^, ISequence<T>^>^ Partition(
Func<T, bool>^ predicate
) sealed
public:
virtual Tuple<ISequence<T>^, ISequence<T>^>^ Partition(
Func<T, bool>^ predicate
) sealed
abstract Partition :
predicate : Func<'T, bool> -> Tuple<ISequence<'T>, ISequence<'T>>
override Partition :
predicate : Func<'T, bool> -> Tuple<ISequence<'T>, ISequence<'T>>
abstract Partition :
predicate : Func<'T, bool> -> Tuple<ISequence<'T>, ISequence<'T>>
override 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.
Implements
ISequence T Partition(Func T, Boolean )See Also