Skip to content

Latest commit

 

History

History
56 lines (44 loc) · 2.22 KB

File metadata and controls

56 lines (44 loc) · 2.22 KB

Function: StructMap

Used to map a struct to a new struct of the same type containing the result

Method Signature

StructMap(struct=[structloose], callback=[function:BiFunction], parallel=[boolean], maxThreads=[integer])

Arguments

Argument Type Required Description Default
struct struct true The target struct to test
callback function:BiFunction true The function used to produce the right-hand value assignment in the new struct. The function will be passed 3 arguments: the key, the value, the struct. You can alternatively pass a Java BiFunction 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