News for hackers. Stuff that matters.
Re:Such a Little Thing: The Semicolon in Rust by peripetylabs on Friday October 19, 2012 @12:50PM (#4674319)
As an aside, the "power_it" function in Python can also be written as:

    map(lambda t: t ** 2, [1,2,3,4])
or even:

    [(lambda t: t**2)(x) for x in [1,2,3,4]]
Re:Such a Little Thing: The Semicolon in Rust by irahul on Friday October 19, 2012 @01:13PM (#4674432)
> [(lambda t: t2)(x) for x in [1,2,3,4]]

Why would you have that lambda?

    [x**2 for x in range(1, 5)]