Skip to content

Commit

Permalink
[multiset] total() is a property
Browse files Browse the repository at this point in the history
  • Loading branch information
Prometheus3375 committed Jul 17, 2024
1 parent 9d1c2ab commit f3b6945
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions solve/multiset.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ def elements(self, /) -> Iterator[T]:
def __len__(self, /) -> int:
return self._counter.__len__()

@property
def total(self, /) -> int:
"""
Returns the total number of elements in this multiset.
Expand Down

0 comments on commit f3b6945

Please sign in to comment.