SegmentExtensionSegmentT(IEnumerableT, FuncT, Boolean) Method
            Divides a sequence into multiple sequences by using a segment detector based on the original sequence
            
Namespace: MoreLinq.ExtensionsAssembly: MoreLinq (in MoreLinq.dll) Version: 4.0.0+092a40d82a1b280568ffa006d9a210bdec0792cd
public static IEnumerable<IEnumerable<T>> Segment<T>(
	this IEnumerable<T> source,
	Func<T, bool> newSegmentPredicate
)
<ExtensionAttribute>
Public Shared Function Segment(Of T) ( 
	source As IEnumerable(Of T),
	newSegmentPredicate As Func(Of T, Boolean)
) As IEnumerable(Of IEnumerable(Of T))
public:
[ExtensionAttribute]
generic<typename T>
static IEnumerable<IEnumerable<T>^>^ Segment(
	IEnumerable<T>^ source, 
	Func<T, bool>^ newSegmentPredicate
)
[<ExtensionAttribute>]
static member Segment : 
        source : IEnumerable<'T> * 
        newSegmentPredicate : Func<'T, bool> -> IEnumerable<IEnumerable<'T>> 
- source  IEnumerableT
 - The sequence to segment
 - newSegmentPredicate  FuncT, Boolean
 - A function, which returns true if the given element begins a new segment, and false otherwise
 
- T
 - The type of the elements in the sequence
 
IEnumerableIEnumerableTA sequence of segment, each of which is a portion of the original sequenceIn Visual Basic and C#, you can call this method as an instance method on any object of type 
IEnumerableT. When you use instance method syntax to call this method, omit the first parameter. For more information, see 
Extension Methods (Visual Basic) or 
Extension Methods (C# Programming Guide).