I am weak in python especially
I have a class defined as the following:-
class Employee: def __init__(self, id, age): self.age = age self.id = id
I have a lambda to read:-
expr = (0, lambda acc, e: max(acc, e.age), lambda x: x)
From what i gather its some sort of accumulator that takes the max over the age element in the e.age key.
So my first guess was pass a list of employees into the expr:-
employeeList =  for i in range(1, 10): employeeList.append(Employee(i, 20)) maxAge = expr(employeeList)
But it gives the following error:-
TypeError: 'tuple' object is not callable
Can someone help me out in reading this lambda and in particular what exactly to pass to this expr? Since lambdas are not debuggable in python, this is hard.