2 ms·
Julia has a pipe operator, which applies a function to the preceding argument: julia> 1:5 |> x->x.^2 |> x->2x 5-element Array{Int64,1}: 2 8 18 32 50
by msravi 8y ago
Julia has a pipe operator, which applies a function to the preceding argument:
julia> 1:5 |> x->x.^2 |> x->2x
5-element Array{Int64,1}:
2
8
18
32
50