Span Extensions.Map<T, U> Method
Applies a function to the elements of a span and returns the result
in another span.
Definition
Namespace: Numerics.NET.Collections
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.2
C#
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.2
public static void Map<T, U>(
this ReadOnlySpan<T> span,
Func<T, U> function,
Span<U> result
)
Parameters
- span ReadOnlySpan<T>
- A read-only span.
- function Func<T, U>
- A function to apply to each element of span.
- result Span<U>
- A span that is to hold the result.
Type Parameters
- T
- The type of the elements of the span.
- U
- The type of the elements of the result.