@@ -145,52 +145,52 @@ user.Age > 30 ? "mature" : "immature"
145
145
</td >
146
146
<td >
147
147
<a href="#lenv">len()</a><br>
148
- <a href="#maparrayclosure ">map()</a><br>
148
+ <a href="#maparray-closure ">map()</a><br>
149
149
<a href="#filterarray-predicate">filter()</a><br>
150
150
<a href="#countarray-predicate">count()</a><br>
151
151
</td >
152
152
</tr >
153
153
</table >
154
154
155
155
156
- #### ` all(array, predicate) `
156
+ ### ` all(array, predicate) `
157
157
158
158
Returns ** true** if all elements satisfies the predicate (or if the array is empty).
159
159
160
160
```
161
161
all(Tweets, {.Size < 280})
162
162
```
163
163
164
- #### ` any(array, predicate) `
164
+ ### ` any(array, predicate) `
165
165
166
166
Returns ** true** if any elements satisfies the predicate. If the array is empty, returns ** false** .
167
167
168
168
169
- #### ` one(array, predicate) `
169
+ ### ` one(array, predicate) `
170
170
171
171
Returns ** true** if _ exactly one_ element satisfies the predicate. If the array is empty, returns ** false** .
172
172
173
173
```
174
174
one(Participants, {.Winner})
175
175
```
176
176
177
- #### ` none(array, predicate) `
177
+ ### ` none(array, predicate) `
178
178
179
179
Returns ** true** if _ all elements does not_ satisfy the predicate. If the array is empty, returns ** true** .
180
180
181
- #### ` len(v) `
181
+ ### ` len(v) `
182
182
183
183
Returns the length of an array, a map or a string.
184
184
185
- #### ` map(array, closure) `
185
+ ### ` map(array, closure) `
186
186
187
187
Returns new array by applying the closure to each element of the array.
188
188
189
- #### ` filter(array, predicate) `
189
+ ### ` filter(array, predicate) `
190
190
191
191
Returns new array by filtering elements of the array by predicate.
192
192
193
- #### ` count(array, predicate) `
193
+ ### ` count(array, predicate) `
194
194
195
195
Returns the number of elements what satisfies the predicate. Equivalent to:
196
196
0 commit comments