Lazy.jl <https://github.com/one-more-minute/Lazy.jl> also has piping macros. Your example would be written as @> x f(y) but there's also @>> for filling in the *last* slot, or @as for composing more complicated operations like @as _ x begin f(_, 1) g(2, _) end which is the same as g(2, f(x, 1)).
On Wednesday, 10 June 2015 12:39:33 UTC+1, Jihui Han wrote: > > In R, one can pipe with assignment using library "pipeR > <https://github.com/renkun-ken/pipeR>". Julia only provide a simple pipe > operator "|>". If I want pipe with assignment, what shall I do? > For example: > x|>f(.,y) > > function f have two arguments, I want above expression is equivalent to > f(x,y). > > >
