Skip to content

Commit fb0e9f4

Browse files
committed
better docs
1 parent 2b90f82 commit fb0e9f4

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/Core__Option.resi

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -250,9 +250,9 @@ cmp(None, None, clockCompare) // 0
250250
let cmp: (option<'a>, option<'b>, ('a, 'b) => int) => int
251251

252252
/**
253-
`exists(option, predicate)` tests whether the option is both `Some` and the predicate applied to its value is true.
253+
`exists(option, predicate)` tests whether the option is `Some` **and** the predicate applied to its value is true.
254254
255-
An option can be thought of as an array with 0 or 1 items in it. This function is similar to `Array.some` and acts like the "there exists" quantifier in mathematics. In particular it returns false for an "empty" `None` option.
255+
An option can be thought of as an array with 0 or 1 items in it. `exists` is similar to `Array.some` and acts like the "there exists" quantifier in mathematics. It returns false for a `None` option.
256256
257257
## Examples
258258
@@ -265,9 +265,9 @@ Option.exists(Some(3), i => i < 0) // false
265265
let exists: (option<'a>, 'a => bool) => bool
266266

267267
/**
268-
`isNoneOr(option, predicate)` tests whether the option is either `None` or the predicate applied to its value is true.
268+
`isNoneOr(option, predicate)` tests whether the option is `None` **or** the predicate applied to its value is true.
269269
270-
An option can be thought of as an array with 0 or 1 items in it. This function is similar to `Array.every` and acts like the "for all" quantifier in mathematics. In particular it returns true for an "empty" `None`.
270+
An option can be thought of as an array with 0 or 1 items in it. `isNoneOr` is similar to `Array.every` and acts like the "for all" quantifier in mathematics. In particular it returns true when the option is `None`.
271271
272272
## Examples
273273

0 commit comments

Comments
 (0)