kachayev / fn.py

Functional programming in Python: implementation of missing features to enjoy FP
Other
3.35k stars 204 forks source link

How to concat multiple functions to one? #82

Open daleydeng opened 7 years ago

daleydeng commented 7 years ago

Could fn.py do something like this functional concatenation? def f1(a): return a def f2(b): return b

def f3(a, b): return a+b

([f1, f2] >> f3) (3, 2) = 5