Last active
June 30, 2020 00:55
-
-
Save sguzman/ff54999e2cec7258602ffa454e6ca914 to your computer and use it in GitHub Desktop.
An example of tacit programming in python. Pretty
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
def compose(*fns): | |
return functools.partial(functools.reduce, lambda v, fn: fn(v), fns) | |
example = compose(baz, bar, foo) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment