You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@ocots agreed. the allowed / forbidden combinations are:
julia> f =11
julia>f(x) =2
ERROR: cannot define function f; it already has a value
Stacktrace:
[1] top-level scope
@ none:0
[2] top-level scope
@ REPL[64]:1
julia> f = x ->2#123 (generic function with 1 method)
julia>g(x) =3
g (generic function with 1 method)
julia> g =4
ERROR: invalid redefinition of constant Main.g
Stacktrace:
[1] top-level scope
@ REPL[67]:1
julia>g(x, y) =4
g (generic function with 2 methods)
A function (not a functional value, aka lambda) can have several definitions (multiple dispatch).
Regarding Poisson, not clear from the PR whether we can completely bypass the Lift constructor and bracket mere functions of x and p?
A lift of a function should return a function.
The text was updated successfully, but these errors were encountered: