Legend

Class
Struct
Enum
Interface
Delegate
Constructor
Method
Property
Event
Field

Extension method: IEnumerable<IEnumerable<T>> Split<T>(this IEnumerable<T>, Func<T, bool>)

Declaration

public static IEnumerable<IEnumerable<T>> Split<T>(
    this IEnumerable<T> splitWhat,
    Func<T, bool> splitWhere
)

Summary

Splits the specified IEnumerable at every element that satisfies a specified predicate and returns a collection containing each sequence of elements in between each pair of such elements. The elements satisfying the predicate are not included.

Generic type parameters

TThis type parameter is not documented.

Parameters

this IEnumerable<T>splitWhat The collection to be split.
Func<T, bool>splitWhere A predicate that determines which elements constitute the separators.

Returns

A collection containing the individual pieces taken from the original collection.