Skip to content

Instantly share code, notes, and snippets.

@monokrome
Forked from squishybear-zz/gist:5446582
Last active December 16, 2015 14:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save monokrome/5446635 to your computer and use it in GitHub Desktop.
Save monokrome/5446635 to your computer and use it in GitHub Desktop.
from django.core.serializers import json
def increase_by(amount):
def addition(original):
return original + amount
return addition
numbers = map(increase_by(5), [1, 2, 3])
json.dumps(numbers)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment