Commit 3b5d61fa authored by Gregory P. Smith's avatar Gregory P. Smith

Clarify "cardinality of" as "number of elements in" as many readers do

not have a math vocabulary.
parent db28718e
...@@ -76,7 +76,8 @@ operations: ...@@ -76,7 +76,8 @@ operations:
+-------------------------------+------------+---------------------------------+ +-------------------------------+------------+---------------------------------+
| Operation | Equivalent | Result | | Operation | Equivalent | Result |
+===============================+============+=================================+ +===============================+============+=================================+
| ``len(s)`` | | cardinality of set *s* | | ``len(s)`` | | number of elements in set *s*
| | | (cardinality) |
+-------------------------------+------------+---------------------------------+ +-------------------------------+------------+---------------------------------+
| ``x in s`` | | test *x* for membership in *s* | | ``x in s`` | | test *x* for membership in *s* |
+-------------------------------+------------+---------------------------------+ +-------------------------------+------------+---------------------------------+
......
...@@ -1779,7 +1779,7 @@ The constructors for both classes work the same: ...@@ -1779,7 +1779,7 @@ The constructors for both classes work the same:
.. describe:: len(s) .. describe:: len(s)
Return the cardinality of set *s*. Return the number of elements in set *s* (cardinality of *s*).
.. describe:: x in s .. describe:: x in s
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment