StructSome

This function calls a given closure/function with every element in a given struct and returns true, if one of the closure calls returns true.

Returns: boolean

Usage

StructSome( struct, closure [, parallel [, maxThreads ] ] )

Arguments

Argument Description Default
struct
(struct, required)

struct to iterate

closure
(function, required)

function/closure that implements the following constructor [function(string key, any value[array array]):boolean].

parallel
(boolean, optional)

execute closures parallel

maxThreads
(number, optional)

maximum number of threads executed, ignored when argument "parallel" is set to false

20

Examples

There are currently no examples for this function.

See also