Created
February 18, 2016 06:21
-
-
Save suzuki-shunsuke/a819615f2944fc219b4a to your computer and use it in GitHub Desktop.
関数合成
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
from functools import reduce | |
def concate(*args): | |
return reduce( | |
lambda func1, func2: lambda value: func2(func1(value)), | |
args | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment