Returns a vector that applies the specified selector
to each element of a lookup.
Namespace:
Extreme.DataAnalysis.Linq
Assembly:
Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.1
public static Vector<TResult> Select<TKey, TElement, TResult>(
this LinqExtensionsLookup<TKey, TElement> lookup,
Func<LinqExtensionsGrouping<TKey, TElement>, TResult> selector
)
<ExtensionAttribute>
Public Shared Function Select(Of TKey, TElement, TResult) (
lookup As LinqExtensionsLookup(Of TKey, TElement),
selector As Func(Of LinqExtensionsGrouping(Of TKey, TElement), TResult)
) As Vector(Of TResult)
public:
[ExtensionAttribute]
generic<typename TKey, typename TElement, typename TResult>
static Vector<TResult>^ Select(
LinqExtensionsLookup<TKey, TElement>^ lookup,
Func<LinqExtensionsGrouping<TKey, TElement>^, TResult>^ selector
)
[<ExtensionAttribute>]
static member Select :
lookup : LinqExtensionsLookup<'TKey, 'TElement> *
selector : Func<LinqExtensionsGrouping<'TKey, 'TElement>, 'TResult> -> Vector<'TResult>
Parameters
- lookup
- Type: Extreme.DataAnalysis.LinqLinqExtensionsLookupTKey, TElement
A LinqExtensionsLookupTKey, T value. - selector
- Type: SystemFuncLinqExtensionsGroupingTKey, TElement, TResult
The function to apply to each group in
lookup.
Type Parameters
- TKey
- The type of the lookup keys.
- TElement
- The type of the elements of the lookup collections.
- TResult
- The type of the result of the selector function.
Return Value
Type:
VectorTResultA vector containing the results of applying
selector
to each grouping in
lookup.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
LinqExtensionsLookupTKey,
TElement. 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).
Reference