Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
Less duplication solution in Creative category for Min and Max by suic
def min(*a, **kw):
return minmax(*a, **kw)
def max(*a, **kw):
kw['rev'] = True
return minmax(*a, **kw)
def minmax(*a, **kw):
if len(a) == 1: a = iter(a[0])
return sorted(a, key=kw.get("key", None), reverse=kw.get("rev", False))[0]
March 1, 2015
Comments: