We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eb09e1d commit 30777b6Copy full SHA for 30777b6
docs/Language-Definition.md
@@ -157,14 +157,20 @@ user.Age > 30 ? "mature" : "immature"
157
* `map` (map all items with the closure)
158
* `count` (returns number of elements what satisfies the predicate)
159
160
-Example:
+Examples:
161
162
Ensure all tweets are less than 280 chars.
163
164
```js
165
all(Tweets, {.Size < 280})
166
```
167
168
+Ensure there is exactly one winner.
169
+
170
+```js
171
+one(Participants, {.Winner})
172
+```
173
174
## Closures
175
176
* `{...}` (closure)
0 commit comments