You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+1Lines changed: 1 addition & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -349,6 +349,7 @@ For example, this is a JSON version of an emitted RuntimeContainer struct:
349
349
**`groupBy $containers $fieldPath`*: Groups an array of `RuntimeContainer` instances based on the values of a field path expression `$fieldPath`. A field path expression is a dot-delimited list of map keys or struct member names specifying the path from container to a nested value, which must be a string. Returns a map from the value of the field path expression to an array of containers having that value. Containers that do not have a value for the field path in question are omitted.
350
350
**`groupByKeys $containers $fieldPath`*: Returns the same as `groupBy` but only returns the keys of the map.
351
351
**`groupByMulti $containers $fieldPath $sep`*: Like `groupBy`, but the string value specified by `$fieldPath` is first split by `$sep` into a list of strings. A container whose `$fieldPath` value contains a list of strings will show up in the map output under each of those strings.
352
+
**`groupByLabel $containers $label`*: Returns the same as `groupBy` but grouping by the given label's value.
352
353
**`hasPrefix $prefix $string`*: Returns whether `$prefix` is a prefix of `$string`.
353
354
**`hasSuffix $suffix $string`*: Returns whether `$suffix` is a suffix of `$string`.
354
355
**`intersect $slice1 $slice2`*: Returns the strings that exist in both string slices.
0 commit comments