-
-
Save monokrome/5446635 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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