Click or drag to resize

AScan<T> Function <ARRAY OF<T>, T>

Scan an array until a value is found or a code block returns TRUE.

Namespace:  XSharp.RT
Assembly:  XSharp.RT (in XSharp.RT.dll) Version: 2.0
Syntax
 FUNCTION AScan<T>(
	aTarget AS ARRAY OF<T>,
	element AS T
)
WHERE T : NEW()
 AS DWORD

Parameters

aTarget
Type: ARRAY OF<T>
The array whose element will be scanned.
element
Type: T

Type Parameters

T

Return Value

Type: UInt32
If uSearch is a code block then the functions returns the position of the first element for which the code block returns TRUE. Otherwise it returns the position of the first matching element. The function returns 0 if no match is found.
See Also