3 ms·
Ok, in Julia 1.0+ you just have to use the dot operator: 1:3 |> x->x.+1 |> x->join(x,",") |> length Note the dot in x.+1, that tells + to operate on each elem
by msravi 8y ago
Ok, in Julia 1.0+ you just have to use the dot operator:
1:3 |> x->x.+1 |> x->join(x,",") |> length
Note the dot in x.+1, that tells + to operate on each element of the array (x), and not the array itself.