Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class F:
- def __init__(f, _f):f._f=_f
- __call__=lambda f,x:f._f(x)
- __matmul__=lambda f,g:F(lambda x:f(g(x)))
- __rmatmul__=lambda f,g:F(g)@f
- fm=lambda f:F(lambda x:map(f,x))
- p=lambda x:(x.lower(),x)
- @F
- def u(x):return x[1]
- (list @ fm(print@u) @ sorted @ fm(p))("FuNcTiOnAl")
Add Comment
Please, Sign In to add comment