Used to map a struct to a new struct of the same type containing the result
StructMap(struct=[structloose], callback=[function:BiFunction], parallel=[boolean], maxThreads=[integer])
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 |
- StructAppend
- StructClear
- StructCopy
- StructDelete
- StructEach
- StructEquals
- StructEvery
- StructFilter
- StructFind
- StructFindKey
- StructFindValue
- StructGet
- StructGetMetadata
- StructInsert
- StructIsCaseSensitive
- StructIsOrdered
- StructKeyArray
- StructKeyExists
- StructKeyList
- StructKeyTranslate
- StructNew
- StructReduce
- StructSome
- StructSort
- StructToQueryString
- StructToSorted
- StructUpdate
- StructValueArray