A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2000-July/006263.html below:

[Python-Dev] zip() and list-comprehension with commas

[Python-Dev] zip() and list-comprehension with commas [Python-Dev] zip() and list-comprehension with commasSkip Montanaro skip@mojam.com (Skip Montanaro)
Wed, 12 Jul 2000 10:11:44 -0500 (CDT)
    Peter> off-topic:
    Peter> I am still thinking about higher order functions in Python:
    Peter> e.g.: map(+ 1, [1, 2, 3]) instead of map(lambda x: x + 1, [1, 2, 3])
    Peter> don't have a clue how to do that yet.

That would be

    [x + 1 for x in [1,2,3]]

of course... ;-)

Skip




RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4