Skip to content

Commit

Permalink
[mq] working branch - merge 62f7907 on top of master at 8eb23bd
Browse files Browse the repository at this point in the history
{"baseBranch":"master","baseCommit":"8eb23bdb67759e3d4cf3e068b93ee91321d4b8e9","createdAt":"2025-01-28T13:37:12.741967Z","headSha":"62f7907d9cae6191e7df454acad7ef6cdad7fe00","id":"fe6144a9-636e-4f66-9538-3a0072cae7c9","priority":"200","pullRequestNumber":"27323","queuedAt":"2025-01-28T13:37:12.740771Z","status":"STATUS_QUEUED"}
  • Loading branch information
dd-mergequeue[bot] authored Jan 28, 2025
2 parents 18566b4 + 62f7907 commit 10284c9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions content/en/dynamic_instrumentation/expression-language.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,9 @@ The following examples use a variable named `myCollection` defined as `[1,2,3]`:

| Operation | Description | Example |
|-----------|-------------|---------|
| `any(value_src, {predicate})` | Checks if there is at least one element in the collection that satisfies the given predicate. The current element is accessed with the `@it` reference. | `any(myCollection, @it > 2)` -> `True` |
| `all(value_src, {predicate})` | Checks whether every element in a collection satisfies the specified predicate. The current element is accessed with the `@it` reference. | `all(myCollection, @it < 4)` -> `True` |
| `filter(value_src, {predicate})` | Filters the elements of the collection using the predicate. The current element is accessed with the `@it` reference. | `filter(myCollection, @it > 1)` -> `[2,3]` |
| `any(value_src, {predicate})` | Checks if there is at least one element in the collection that satisfies the given predicate. The current element is accessed with the `@it` reference. | `any(myCollection, {@it > 2})` -> `True` |
| `all(value_src, {predicate})` | Checks whether every element in a collection satisfies the specified predicate. The current element is accessed with the `@it` reference. | `all(myCollection, {@it < 4})` -> `True` |
| `filter(value_src, {predicate})` | Filters the elements of the collection using the predicate. The current element is accessed with the `@it` reference. | `filter(myCollection, {@it > 1})` -> `[2,3]` |
| `len(value_src)` | Gets the collection size. | `len(myCollection)` -> `3` |
| `[ n ]` | For collections, returns the nth item in the collection. For maps and dictionaries, returns the value that corresponds to the key `n`. If the item does not exist, the expression yields an error. | `myCollection[1]` -> `2` |

Expand Down

0 comments on commit 10284c9

Please sign in to comment.