News for hackers. Stuff that matters.
Re:Ruby’s magic underscore by ori_b on Saturday September 22, 2012 @12:29PM (#4558220)
Ruby defines 'map', 'each', and other iteration utilities as higher order functions. This means that, while it works for tuples, this does not for looping.

The equivalent code in Python would be this:

    def each_fn(unused, unused, email):
        pass
    map(iter_fn, list)
And this does in fact give a syntax error:

    SyntaxError: duplicate argument 'unused' in function definition

There are no comments on this comment yet.