Created
December 16, 2015 21:20
-
-
Save pablotron/5af0bb4c386525dcf21c to your computer and use it in GitHub Desktop.
python splat example
This file contains 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
def splat(*args, **kwargs): | |
return (kwargs['delim']).join(args) | |
def out(fn, *args, **kwargs): | |
print(fn(*args, **kwargs)) | |
out(splat, 'foo', 'bar', delim=','); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment