See:

https://groups.google.com/forum/?hl=en#!topic/julia-users/emDJpY8UnL4
https://groups.google.com/forum/?hl=en#!topic/julia-users/CbInZXqs2d8

And look at the @p/@pipe macros in FunctionalData.jl and Pipe.jl 
respectively.  There's not a perfectly clean solution that I know of, so I 
think it depends on how ugly your code would be without the macro(s).


On Wednesday, June 10, 2015 at 7:39:33 AM UTC-4, 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).
>
>
>

Reply via email to