StructEach
Used to iterate over a struct and run the function closure for each key/value pair.
Method Signature
Arguments
Argument | Type | Required | Description | Default |
---|---|---|---|---|
|
|
| The target struct to iterate | |
|
|
| The function to invoke for each item. The function will be passed 3 arguments: the key, the value, the struct. You can alternatively pass a Java BiConsumer which will only receive the first 2 args. | |
|
|
| Specifies whether the items can be executed in parallel |
|
|
|
| The maximum number of threads to use when parallel = true | |
|
|
| (BoxLang only) whether parallel operations should execute and maintain order |
|
Examples
Related
Last updated