Skip to content

Commit d979bd9

Browse files
authored
better wording for the unique aggregate
1 parent f944221 commit d979bd9

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

docs/language/ql-handbook/expressions.rst

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -281,9 +281,10 @@ The following aggregates are available in QL:
281281

282282
.. index: unique
283283
284-
- ``unique``: The value of this aggregate depends on how many different values ``<expression>`` can have,
285-
within the context of a fixed set of assignments to outside variables.
286-
If the value is uniquely determined, then the aggregate gives that value. Otherwise, it has no value.
284+
- ``unique``: This aggregate depends on the values of ``<expression>`` over all possible assignments to
285+
the aggregation variables. If there is a unique value of the ``expression`` over the aggregation variables,
286+
then the aggregate evaluates to that value.
287+
Otherwise, the aggregate has no value.
287288

288289
For example, the following aggregation yields the positive integers ``1``, ``2``, ``3``, ``4``, ``5``.
289290
For negative integers ``x``, the expressions ``x`` and ``x.abs()`` have different values and hence the

0 commit comments

Comments
 (0)