Skip to content
This repository has been archived by the owner on Jan 30, 2023. It is now read-only.

Commit

Permalink
Add documentation of Integer index
Browse files Browse the repository at this point in the history
  • Loading branch information
trevorkarn committed Jun 22, 2022
1 parent a6e696e commit d4dedf6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/sage/sets/family.py
Original file line number Diff line number Diff line change
Expand Up @@ -1346,7 +1346,7 @@ def __setstate__(self, state):
class EnumeratedFamily(LazyFamily):
r"""
:class:`EnumeratedFamily` turns an enumerated set ``c`` into a family
indexed by the set `\{0,\dots, |c|-1\}`.
indexed by the set `\{0,\dots, |c|-1\}` or ``ZZ``.
Instances should be created via the :func:`Family` factory. See its
documentation for examples and tests.
Expand Down Expand Up @@ -1374,6 +1374,8 @@ def __init__(self, enumset):
True
sage: Family(Permutations()).keys()
Non negative integers
sage: type(Family(ZZ))
<class 'sage.sets.family.EnumeratedFamily_with_category'>
"""
if enumset.cardinality() == Infinity:
baseset = NonNegativeIntegers()
Expand Down

0 comments on commit d4dedf6

Please sign in to comment.