|
53 | 53 |
|
54 | 54 | .Considerations |
55 | 55 | |=== |
| 56 | +| `all()` differs from most Cypher functions because it iterates over a list, evaluating an expression for each element, rather than returning a result from a single evaluation. |
56 | 57 | | `null` is returned if the `list` is `null` or if the `predicate` evaluates to `null` for at least one element and does not evaluate to false for any other element. |
57 | 58 | | `all()` returns `true` if `list` is empty because there are no elements to falsify the `predicate`. |
58 | 59 | |=== |
@@ -123,6 +124,7 @@ RETURN all(i in emptyList WHERE true) as allTrue, all(i in emptyList WHERE false |
123 | 124 |
|
124 | 125 | .Considerations |
125 | 126 | |=== |
| 127 | +| `any()` differs from most Cypher functions because it iterates over a list, evaluating an expression for each element, rather than returning a result from a single evaluation. |
126 | 128 | | `null` is returned if the `list` is `null` or if the `predicate` evaluates to `null` for at least one element and does not evaluate to false for any other element. |
127 | 129 | | `any()` returns `false` if `list` is empty because there are no elements to satisfy the `predicate`. |
128 | 130 | |=== |
@@ -348,6 +350,7 @@ xref:syntax/operators.adoc#cypher-comparison[`IS NULL` or `IS NOT NULL`] should |
348 | 350 |
|
349 | 351 | .Considerations |
350 | 352 | |=== |
| 353 | +| `none()` differs from most Cypher functions because it iterates over a list, evaluating an expression for each element, rather than returning a result from a single evaluation. |
351 | 354 | | `null` is returned if the `list` is `null`, or if the `predicate` evaluates to `null` for at least one element and does not evaluate to `true` for any other element. |
352 | 355 | | `none()` returns `true` if `list` is empty because there are no elements to violate the `predicate`. |
353 | 356 | |=== |
@@ -419,6 +422,7 @@ RETURN none(i IN emptyList WHERE true) as noneTrue, none(i IN emptyList WHERE fa |
419 | 422 |
|
420 | 423 | .Considerations |
421 | 424 | |=== |
| 425 | +| `single()` differs from most Cypher functions because it iterates over a list, evaluating an expression for each element, rather than returning a result from a single evaluation. |
422 | 426 | | `null` is returned if the `list` is `null`, or if the `predicate` evaluates to `null` for at least one element and does not evaluate to `true` for any other element. |
423 | 427 | | `single()` returns `false` if `list` is empty because there is not exactly one element satisfying the `predicate`. |
424 | 428 | |=== |
|
0 commit comments