| NMathFunctionsIf(Int32, FuncInt32, Boolean) Method |
Creates an array of boolean values determined by applying a logical function
to the elements of an array.
Namespace: CenterSpace.NMath.CoreAssembly: NMath (in NMath.dll) Version: 7.4
Syntax public static bool[] If(
int[] data,
Func<int, bool> function
)
Public Shared Function If (
data As Integer(),
function As Func(Of Integer, Boolean)
) As Boolean()
public:
static array<bool>^ If(
array<int>^ data,
Func<int, bool>^ function
)
static member If :
data : int[] *
function : Func<int, bool> -> bool[]
Parameters
- data Int32
- An array of integers.
- function FuncInt32, Boolean
- A function that takes an integer and returns a boolean.
Return Value
BooleanA boolean array.
See Also