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

Last updated

Logo

Copyright & Register Trademark by Ortus Solutions, Corp & Ortus Software, LLC