6 lines
No EOL
87 B
Python
6 lines
No EOL
87 B
Python
def extreme(t, test):
|
|
m = t[0]
|
|
for x in t:
|
|
if test(x,m):
|
|
m = x
|
|
return m |