Skip to content

Commit 2611756

Browse files
committed
Update Language-Definition.md
1 parent b99a15e commit 2611756

File tree

1 file changed

+11
-15
lines changed

1 file changed

+11
-15
lines changed

docs/Language-Definition.md

Lines changed: 11 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -186,11 +186,7 @@ array[:] == array
186186
</tr>
187187
</table>
188188

189-
### all()
190-
191-
```
192-
all(array, predicate)
193-
```
189+
### all(array, predicate)
194190

195191
Returns **true** if all elements satisfies the [predicate](#predicate).
196192
If the array is empty, returns **true**.
@@ -199,12 +195,12 @@ If the array is empty, returns **true**.
199195
all(Tweets, {.Size < 280})
200196
```
201197

202-
### `any(array, predicate)`
198+
### any(array, predicate)
203199

204200
Returns **true** if any elements satisfies the [predicate](#predicate).
205201
If the array is empty, returns **false**.
206202

207-
### `one(array, predicate)`
203+
### one(array, predicate)
208204

209205
Returns **true** if _exactly one_ element satisfies the [predicate](#predicate).
210206
If the array is empty, returns **false**.
@@ -213,21 +209,21 @@ If the array is empty, returns **false**.
213209
one(Participants, {.Winner})
214210
```
215211

216-
### `none(array, predicate)`
212+
### none(array, predicate)
217213

218214
Returns **true** if _all elements does not_ satisfy the [predicate](#predicate).
219215
If the array is empty, returns **true**.
220216

221-
### `map(array, predicate)`
217+
### map(array, predicate)
222218

223219
Returns new array by applying the [predicate](#predicate) to each element of
224220
the array.
225221

226-
### `filter(array, predicate)`
222+
### filter(array, predicate)
227223

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

230-
### `count(array, predicate)`
226+
### count(array, predicate)
231227

232228
Returns the number of elements what satisfies the [predicate](#predicate).
233229
Equivalent to:
@@ -236,23 +232,23 @@ Equivalent to:
236232
len(filter(array, predicate))
237233
```
238234

239-
### `len(v)`
235+
### len(v)
240236

241237
Returns the length of an array, a map or a string.
242238

243-
### `abs(v)`
239+
### abs(v)
244240

245241
Returns the absolute value of a number.
246242

247-
### `int(v)`
243+
### int(v)
248244

249245
Returns the integer value of a number or a string.
250246

251247
```python
252248
int("123") == 123
253249
```
254250

255-
### `float(v)`
251+
### float(v)
256252

257253
Returns the float value of a number or a string.
258254

0 commit comments

Comments
 (0)