kachayev/fn.py

There are wrong comments here

pppppkun opened this issue · 1 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

This was fixed in #70 in 2014. It wasn't pushed to the PyPI version, though.

There's a fork of this project which was updated this year: https://pypi.org/project/fn.py/