Skip to content

Instantly share code, notes, and snippets.

@suzuki-shunsuke
Created February 18, 2016 06:21
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 suzuki-shunsuke/a819615f2944fc219b4a to your computer and use it in GitHub Desktop.
Save suzuki-shunsuke/a819615f2944fc219b4a to your computer and use it in GitHub Desktop.
関数合成
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