Click or drag to resize

VectorTFind Method

Returns a tuple with the index and value of the first element satisfying a predicate, or null if none is found. Zero elements may be skipped on sparse data structures if allowed (default).

Namespace: Altaxo.Calc.LinearAlgebra
Assembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3572.0 (4.8.3572.0)
Syntax
C#
public Tuple<int, T> Find(
	Func<T, bool> predicate,
	Zeros zeros = Zeros.AllowSkip
)

Parameters

predicate  FuncT, Boolean
The predicate to test elements.
zeros  Zeros  (Optional)
Specifies whether zero values may be skipped.

Return Value

TupleInt32, T
The first matching index-value pair, or if none matches.
See Also