Finds last index where this list contains a given sequence as a slice.

Namespace: Flinq
Assembly: Flinq (in Flinq.dll) Version: 1.0.2.0 (1.0.2.0)

Syntax

C#
public static int LastIndexOfSlice<A>(
	this IEnumerable<A> source,
	IEnumerable<A> that
)

Parameters

source
Type: System.Collections.Generic..::..IEnumerable<(Of <(<'A>)>)>
The input sequence.
that
Type: System.Collections.Generic..::..IEnumerable<(Of <(<'A>)>)>
The sequence to test.

Type Parameters

A
The type of the elements in the input sequence.

Return Value

Type: Int32
The last index such that the elements of this list starting a this index match the elements of sequence that, or -1 of no such subsequence exists.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IEnumerable<(Of <(<'A>)>)>. 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).

See Also