In R (thanks to magritrr) you can now perform operations with a more functional piping syntax via %>%. This means that instead of coding this: <
magritrr
%>%
You can use sspipe library. It exposes two objects p and px. Similar to x %>% f(y,z), you can write x | p(f, y, z) and similar to x %>% .^2 you can write x | px**2.
p
px
x %>% f(y,z)
x | p(f, y, z)
x %>% .^2
x | px**2
from sspipe import p, px from math import sqrt 12 | p(sqrt) | px ** 2 | p(str)