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

Commit

Permalink
Change to list
Browse files Browse the repository at this point in the history
  • Loading branch information
trevorkarn committed Aug 17, 2022
1 parent 28286da commit 75ce24e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/sage/combinat/partition.py
Original file line number Diff line number Diff line change
Expand Up @@ -4035,8 +4035,8 @@ def outside_corners(self):
sage: Partition([]).outside_corners()
[(0, 0)]
"""
p = self
if p.is_empty():
p = self._list
if not p:
return [(0,0)]
res = [(0, p[0])]
res.extend((n, j) for n, (i, j) in enumerate(zip(p[:-1], p[1:]), start=1) if i != j)
Expand Down

0 comments on commit 75ce24e

Please sign in to comment.