Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
One-liner solution in Creative category for Min and Max by OleGG
# migrated from python 2.7
from functools import reduce
min=lambda *v,**c:reduce(lambda x,y,k=c.get("key",lambda z:z):(x,y)[k(x)>k(y)],(v[0],v)[len(v)>1])
max=lambda *v,**c:reduce(lambda x,y,k=c.get("key",lambda z:z):(x,y)[k(x)1])
July 13, 2014
Comments: