Click or drag to resize

DVectorFilterMap Method

Creates a new vector by filtering and mapping at the same time.

Namespace: Austra.Library
Assembly: Austra.Library (in Austra.Library.dll) Version: 2.5.0+44e7797405725ef3cf24b3ff0eba94ce6c649601
Syntax
C#
public DVector FilterMap(
	Func<double, bool> predicate,
	Func<double, double> mapper
)

Parameters

predicate  FuncDouble, Boolean
The predicate to evaluate.
mapper  FuncDouble, Double
The mapping function.

Return Value

DVector
A new vector with the filtered items.
Remarks
This method can save an intermediate buffer and one iteration.
See Also