fn.py icon indicating copy to clipboard operation
fn.py copied to clipboard

There are wrong comments here

Open pppppkun opened this issue 2 years ago • 0 comments

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

pppppkun avatar Apr 25 '22 12:04 pppppkun