We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
min
max
Given the existence of .sum() and .mean(), it would make sense to have .min() and .max() methods for numeric lists.
.sum()
.mean()
.min()
.max()
The functions signatures would be:
@typing.overload def min[NumberT: int | float | complex](self: list[NumberT]) -> NumberT: ... @typing.overload def min(self) -> typing_extensions.Never: ...
@typing.overload def max[NumberT: int | float | complex](self: list[NumberT]) -> NumberT: ... @typing.overload def max(self) -> typing_extensions.Never: ...
Considering self to be the list that the method is being called on.
self
The text was updated successfully, but these errors were encountered:
GH-39: add min and max methods
4657176
GH-39: add min and max methods (#40)
e8cd064
qexat
No branches or pull requests
Feature request
min
andmax
.Ideas
Given the existence of
.sum()
and.mean()
, it would make sense to have.min()
and.max()
methods for numeric lists.The functions signatures would be:
Considerations
Considering
self
to be the list that the method is being called on.self
must be non-emptyself
must contain numerical itemsThe text was updated successfully, but these errors were encountered: