>>> @curry
... def to_lower(s):
... if s is not None:
... return s.lower()
>>> "FOO" >> to_lower()
'foo'
>>> @curry
... def append_text(s, text):
... if s is not None:
... return s + text
...
...
>>>
>>> "FOO" >> to_lower() >> append_text(text="bar")
'foobar'