Show More
@@ -2885,6 +2885,7 b' class abstractsmartset(object):' | |||
|
2885 | 2885 | """True if the set will iterate in descending order""" |
|
2886 | 2886 | raise NotImplementedError() |
|
2887 | 2887 | |
|
2888 | @util.cachefunc | |
|
2888 | 2889 | def min(self): |
|
2889 | 2890 | """return the minimum element in the set""" |
|
2890 | 2891 | if self.fastasc is not None: |
@@ -2893,6 +2894,7 b' class abstractsmartset(object):' | |||
|
2893 | 2894 | raise ValueError('arg is an empty sequence') |
|
2894 | 2895 | return min(self) |
|
2895 | 2896 | |
|
2897 | @util.cachefunc | |
|
2896 | 2898 | def max(self): |
|
2897 | 2899 | """return the maximum element in the set""" |
|
2898 | 2900 | if self.fastdesc is not None: |
General Comments 0
You need to be logged in to leave comments.
Login now