cool oneline code text texttexttexttexttexttexttexttexttexttexttexttexttexttexttexttexttexttexttexttexttexttexttexttexttexttexttexttext
class Pipeable:
def __init__(self, fn):
self.fn = fn
print(f"Pipeable constructor: fn: {type(self.fn)}")
def __ror__(self, lhs):
print(f"Pipeable ror: fn: {type(self.fn)} lhs: {lhs}")
x = self.fn(lhs)
print(f"Pipeable return: {type(x)} {x})")
return x