SpanExtensions.MapInPlace<T> Method

Applies a function in-place to the elements of a span.

Definition

Namespace: Numerics.NET.Collections
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.2
C#
public static void MapInPlace<T>(
	this Span<T> span,
	Func<T, T> function
)

Parameters

span  Span<T>
A span.
function  Func<T, T>
A function to apply to each element of span.

Type Parameters

T
The type of the elements of the span.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type Span<T>. 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