Namespace: Extreme.Statistics.LinqAssembly: Extreme.Numerics.Net40 (in Extreme.Numerics.Net40.dll) Version: 6.0.16073.0 (6.0.16312.0)
public static LinqExtensionsLookup<TKey, TElement> ToLookup<T, TKey, TElement>(
this Vector<T> vector,
Func<T, TKey> keySelector,
Func<T, TElement> elementSelector,
IEqualityComparer<TKey> comparer
)
<ExtensionAttribute>
Public Shared Function ToLookup(Of T, TKey, TElement) (
vector As Vector(Of T),
keySelector As Func(Of T, TKey),
elementSelector As Func(Of T, TElement),
comparer As IEqualityComparer(Of TKey)
) As LinqExtensionsLookup(Of TKey, TElement)
public:
[ExtensionAttribute]
generic<typename T, typename TKey, typename TElement>
static LinqExtensionsLookup<TKey, TElement>^ ToLookup(
Vector<T>^ vector,
Func<T, TKey>^ keySelector,
Func<T, TElement>^ elementSelector,
IEqualityComparer<TKey>^ comparer
)
[<ExtensionAttribute>]
static member ToLookup :
vector : Vector<'T> *
keySelector : Func<'T, 'TKey> *
elementSelector : Func<'T, 'TElement> *
comparer : IEqualityComparer<'TKey> -> LinqExtensionsLookup<'TKey, 'TElement>
Parameters
- vector
- Type: Extreme.Mathematics.GenericVectorT
- keySelector
- Type: SystemFuncT, TKey
- elementSelector
- Type: SystemFuncT, TElement
- comparer
- Type: System.Collections.GenericIEqualityComparerTKey
Type Parameters
- T
- TKey
- TElement
Return Value
Type:
LinqExtensionsLookupTKey,
TElementUsage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
VectorT. 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).
Numerical Libraries
Supported in: 5.x
Reference