fn.py
fn.py copied to clipboard
There are wrong comments here
class F(object):
def __rshift__(self, g):
"""Overload << operator for F instances"""
return self.__class__.__compose(self.__ensure_callable(g), self.f)
def __lshift__(self, g):
"""Overload >> operator for F instances"""
return self.__class__.__compose(self.f, self.__ensure_callable(g))
the operator >>
is right shift and <<
is left shift respectively