Skip to content

Instantly share code, notes, and snippets.

@desg
Created July 18, 2012 11:23
Show Gist options
  • Save desg/3135681 to your computer and use it in GitHub Desktop.
Save desg/3135681 to your computer and use it in GitHub Desktop.
def map(list,func):
for list.len() in x
new_list = new_list.append(func(list[x]))
x = x + 1
return new_list
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment