Skip to content

Commit

Permalink
write about extensions, and add a bit of info about collections
Browse files Browse the repository at this point in the history
  • Loading branch information
byorgey committed Dec 12, 2024
1 parent eda8370 commit 4020bd3
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions docs/reference/comprehension.rst
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Comprehensions
==============

*Comprehension* notation can be used to describe :doc:`collections <collections>` such as
*Comprehension* notation can be used to describe collections such as
:doc:`sets <set>` or :doc:`lists <list>`. The general syntax for a
set comprehension is

Expand All @@ -15,8 +15,7 @@ some examples below; for the precise details, see the
`Details`_ section.

:doc:`List <list>` comprehensions are similar, but use square brackets
(``[``, ``]``) instead of curly braces (``{``, ``}``); :doc:`bag
<bag>` comprehensions use bag brackets (````, ````).
(``[``, ``]``) instead of curly braces (``{``, ``}``).

Examples
--------
Expand Down Expand Up @@ -97,7 +96,7 @@ Specification
.. note::

In case you are curious about the precise definition and are not
afraid of the details, the exact way that comprehensions
afraid of the details, the exact way that set comprehensions
work can be defined by the following three equations, making use of
the standard functions :doc:`each <each>` and ``$join``:

Expand Down

0 comments on commit 4020bd3

Please sign in to comment.