monads and pipes
Find a file
2026-02-12 18:42:56 +03:00
pypipe init 2026-02-12 18:42:56 +03:00
.gitignore init 2026-02-12 18:42:56 +03:00
readme.md init 2026-02-12 18:42:56 +03:00

Just(1) @ id % fromJust
match Right([4, 12, 18, 15, 23, -64, 15, 12, 12, 5, 8]) \
    @ (lambda x: map(chr, [y + 96 for y in x])) \
    @ list @ reversed \
    @ (lambda x: ''.join(x) + '!'):
    case Right(value,):
        print(value)
    case Left(value,):
        raise value
Right(1) \
    % whenLeft(exit, _) \
    % mapRight((lambda x: 2), _)