Skip to content

Latest commit

 

History

History
56 lines (44 loc) · 2.15 KB

File metadata and controls

56 lines (44 loc) · 2.15 KB

Function: StructSome

Used to iterate over a struct and test whether any items meet the test callback.

Method Signature

StructSome(struct=[structloose], callback=[function:BiPredicate], parallel=[boolean], maxThreads=[integer])

Arguments

Argument Type Required Description Default
struct struct true The target struct to test
callback function:BiPredicate true The function used to test. The function will be passed 3 arguments: the key, the value, the struct. You can alternatively pass a Java BiPredicate which will only receive the first 2 args.
parallel boolean false Specifies whether the items can be executed in parallel false
maxThreads integer false The maximum number of threads to use when parallel = true

Examples

Related