Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Optional key argument when using max #53

Open
pizzaisdavid opened this issue Dec 29, 2014 · 1 comment
Open

Optional key argument when using max #53

pizzaisdavid opened this issue Dec 29, 2014 · 1 comment

Comments

@pizzaisdavid
Copy link

def get_highest_value_coin(coins):
      return max(coins, key = lambda c: c.bountyGold)

https://docs.python.org/3.4/library/functions.html#max

@differentmatt
Copy link
Owner

We don't support lambda yet, #4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants