You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In python, you can add a function to a call to max() using the key= keyword arg, which lets you do more complex logic for finding the value you want, but in Transcrypt it looks like max() is mapped directly to Math.max() and so doesn't have this ability.
The text was updated successfully, but these errors were encountered:
If this is added, I'd like to also request that it be added to functions like sorted()/list.sort() too, as I also use it in that situation a lot, as well as min()/max()
Edit: apologies, it seems that key is already supported for sorting!
In python, you can add a function to a call to
max()
using thekey=
keyword arg, which lets you do more complex logic for finding the value you want, but in Transcrypt it looks likemax()
is mapped directly toMath.max()
and so doesn't have this ability.The text was updated successfully, but these errors were encountered: