Skip to content

Commit 30777b6

Browse files
committed
Update Language-Definition.md
1 parent eb09e1d commit 30777b6

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

docs/Language-Definition.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,14 +157,20 @@ user.Age > 30 ? "mature" : "immature"
157157
* `map` (map all items with the closure)
158158
* `count` (returns number of elements what satisfies the predicate)
159159

160-
Example:
160+
Examples:
161161

162162
Ensure all tweets are less than 280 chars.
163163

164164
```js
165165
all(Tweets, {.Size < 280})
166166
```
167167

168+
Ensure there is exactly one winner.
169+
170+
```js
171+
one(Participants, {.Winner})
172+
```
173+
168174
## Closures
169175

170176
* `{...}` (closure)

0 commit comments

Comments
 (0)