News for hackers. Stuff that matters.
Re:Curing Python's Neglect by jules on Tuesday June 02, 2009 @08:09AM (#637664)

    collection.each(lambda x:
      ...
      ...
    )
Or if the language doesn't require () to call a method, and uses `do` instead of `lambda`:

    collection.each do x:
       ...
       ...
If it's not the first argument:

    map(lambda x:
      ...
      ...
    , collection)
Yes this is ugly, but using a multi line anonymous function in the middle of an argument list will always be ugly.

There are no comments on this comment yet.