Skip to content

Commit 6070193

Browse files
authored
Update Language-Definition.md
1 parent a92921a commit 6070193

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

docs/Language-Definition.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -145,52 +145,52 @@ user.Age > 30 ? "mature" : "immature"
145145
</td>
146146
<td>
147147
<a href="#lenv">len()</a><br>
148-
<a href="#maparrayclosure">map()</a><br>
148+
<a href="#maparray-closure">map()</a><br>
149149
<a href="#filterarray-predicate">filter()</a><br>
150150
<a href="#countarray-predicate">count()</a><br>
151151
</td>
152152
</tr>
153153
</table>
154154

155155

156-
#### `all(array, predicate)`
156+
### `all(array, predicate)`
157157

158158
Returns **true** if all elements satisfies the predicate (or if the array is empty).
159159

160160
```
161161
all(Tweets, {.Size < 280})
162162
```
163163

164-
#### `any(array, predicate)`
164+
### `any(array, predicate)`
165165

166166
Returns **true** if any elements satisfies the predicate. If the array is empty, returns **false**.
167167

168168

169-
#### `one(array, predicate)`
169+
### `one(array, predicate)`
170170

171171
Returns **true** if _exactly one_ element satisfies the predicate. If the array is empty, returns **false**.
172172

173173
```
174174
one(Participants, {.Winner})
175175
```
176176

177-
#### `none(array, predicate)`
177+
### `none(array, predicate)`
178178

179179
Returns **true** if _all elements does not_ satisfy the predicate. If the array is empty, returns **true**.
180180

181-
#### `len(v)`
181+
### `len(v)`
182182

183183
Returns the length of an array, a map or a string.
184184

185-
#### `map(array, closure)`
185+
### `map(array, closure)`
186186

187187
Returns new array by applying the closure to each element of the array.
188188

189-
#### `filter(array, predicate)`
189+
### `filter(array, predicate)`
190190

191191
Returns new array by filtering elements of the array by predicate.
192192

193-
#### `count(array, predicate)`
193+
### `count(array, predicate)`
194194

195195
Returns the number of elements what satisfies the predicate. Equivalent to:
196196

0 commit comments

Comments
 (0)