Skip to content
New issue

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() and max() features #7

Open
akrish4 opened this issue Dec 17, 2020 · 0 comments
Open

min() and max() features #7

akrish4 opened this issue Dec 17, 2020 · 0 comments
Labels
documentation Improvements or additions to documentation

Comments

@akrish4
Copy link
Owner

akrish4 commented Dec 17, 2020

Fun fact about min() and max() is that these functions can help you to sort in alphabetical order! If a string is passed as an argument, min() will return the first letter (alphabetically) and max() the last one (somewhat zetabetically). And if you specify more than one value, min() will return the first string in alphabetical order and max(), in contrast, the last one. For example, min("alpha", "omega") gives you "alpha", while max("alpha", "omega") returns "omega".

For Example:
max("gloomy", "grey", "green")-"grey"
min("gloomy", "grey", "green")- "gloomy"

@akrish4 akrish4 added the documentation Improvements or additions to documentation label Dec 17, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

1 participant