Skip to content

Commit

Permalink
Update Language-Definition.md
Browse files Browse the repository at this point in the history
  • Loading branch information
antonmedv committed Aug 30, 2023
1 parent b427e16 commit 999485d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/Language-Definition.md
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ the last element.

The `in` operator can be used to check if an item is in an array or a map.

```python
```expr
user.Name in list["available-names"]
```

Expand Down Expand Up @@ -220,15 +220,15 @@ If the array is empty, returns **true**.
Returns new array by applying the [predicate](#predicate) to each element of
the array.

```
```expr
map(Tweets, {.Size})
```

### filter(array, predicate)

Returns new array by filtering elements of the array by [predicate](#predicate).

```
```expr
filter(users, .Name startsWith "J")
```

Expand Down

0 comments on commit 999485d

Please sign in to comment.