I am attempting to pass multiple arguments to the built in piping operator in Julia |>.
I would like something that works like this:
join([randstring() for i in 1:100], " ")
However, using the piping operator, I get an error instead:
[randstring() for i in 1:100] |> join(" ")
I am pretty sure this is a feature of multiple dispatch with join having its own method with delim in the join(strings, delim, [last]) method being defined as delim="" when omitted.
Am I understanding this correctly? Is there a work around?
For what is is worth the majority of my uses of piping end up taking more than one argument. For example:
[randstring() for i in 1:100] |> join(" ") |> replace("|", " ")