Skip to content

kevin-klein/strafunski-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Python 2.7.3 (default, Sep 26 2012, 21:51:14) 
[GCC 4.7.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> z = range(5)
>>> l = []
>>> for x in z:
...     l.append(x)
... 
>>> l
[0, 1, 2, 3, 4]
>>> 

after refactoring:
Python 2.7.3 (default, Sep 26 2012, 21:51:14) 
[GCC 4.7.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> z = range(5)
>>> l = []
>>> l += map(lambda (x): x, z)
>>> l
[0, 1, 2, 3, 4]
>>> 


About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published