I can do max(s) to find the max of a sequence. But suppose I want to compute max according to my own function , something like so -
currmax = 0 def mymax(s)
You can still use the max function:
max
max_arity = max(s, key=lambda i: i.arity())