differentmatt / filbert

JavaScript parser of Python
Other
133 stars 27 forks source link

Optional key argument when using max #53

Open pizzaisdavid opened 9 years ago

pizzaisdavid commented 9 years ago
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 commented 9 years ago

We don't support lambda yet, #4