Function name after parameters

Is it possible to define a function somehow in the manner below:

function (X)zz
   X+X
end

Calling (1)zz would give you the value 2. My interest in this is purely aesthetic.

No.

9 Likes

Still, you may be interested in the |> operator:

julia> zz(x) = x+x
julia> 1 |> zz
2

2 Likes