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

Commit fe5bb99

Browse files
author
Matthias Koeppe
committed
src/sage/categories/finite_enumerated_sets.py: Add missing doctest
1 parent e4e834a commit fe5bb99

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/sage/categories/finite_enumerated_sets.py

+8
Original file line numberDiff line numberDiff line change
@@ -220,6 +220,14 @@ def _unrank_from_list(self, r):
220220
def tuple(self):
221221
r"""
222222
Return a :class:`tuple`of the elements of ``self``.
223+
224+
EXAMPLE::
225+
226+
sage: C = FiniteEnumeratedSets().example()
227+
sage: C.tuple()
228+
(1, 2, 3)
229+
sage: C.tuple() is C.tuple()
230+
True
223231
"""
224232
# Simpler implementation because it does not have to check whether cardinality is finite
225233
try: # shortcut

0 commit comments

Comments
 (0)