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 12, 2022
1 parent 434071a commit bde6bb5
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 @@ -4027,8 +4027,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 bde6bb5

Please sign in to comment.