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.
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.
Still, you may be interested in the |>
operator:
julia> zz(x) = x+x
julia> 1 |> zz
2