Skip to content

Commit 999485d

Browse files
committed
Update Language-Definition.md
1 parent b427e16 commit 999485d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/Language-Definition.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ the last element.
137137

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

140-
```python
140+
```expr
141141
user.Name in list["available-names"]
142142
```
143143

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

223-
```
223+
```expr
224224
map(Tweets, {.Size})
225225
```
226226

227227
### filter(array, predicate)
228228

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

231-
```
231+
```expr
232232
filter(users, .Name startsWith "J")
233233
```
234234

0 commit comments

Comments
 (0)