Splits the source sequence by a separator function.
Declaration Syntax
C# | Visual Basic | Visual C++ |
public static IEnumerable<IEnumerable<TSource>> Split<TSource>( this IEnumerable<TSource> source, Func<TSource, bool> separatorFunc )
<ExtensionAttribute> _ Public Shared Function Split(Of TSource) ( _ source As IEnumerable(Of TSource), _ separatorFunc As Func(Of TSource, Boolean) _ ) As IEnumerable(Of IEnumerable(Of TSource))
public: [ExtensionAttribute] generic<typename TSource> static IEnumerable<IEnumerable<TSource>^>^ Split( IEnumerable<TSource>^ source, Func<TSource, bool>^ separatorFunc )
Generic Template Parameters
- TSource
[Missing <typeparam name="TSource"/> documentation for "M:MoreLinq.MoreEnumerable.Split``1(System.Collections.Generic.IEnumerable{``0},System.Func{``0,System.Boolean})"]
Parameters
- source (IEnumerable<(Of <(<'TSource>)>)>)
[Missing <param name="source"/> documentation for "M:MoreLinq.MoreEnumerable.Split``1(System.Collections.Generic.IEnumerable{``0},System.Func{``0,System.Boolean})"]
Return Value
[Missing <returns> documentation for "M:MoreLinq.MoreEnumerable.Split``1(System.Collections.Generic.IEnumerable{``0},System.Func{``0,System.Boolean})"]
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type IEnumerable<(Of <(<'TSource>)>)>. When you use instance method syntax to call this method, omit the first parameter.
Assembly: MoreLinq (Module: MoreLinq.dll) Version: 1.0.16006.0 (1.0.16006.1845)