4 ms·
The same is true with Julia: julia> a = 1 1 julia> function foo(x) x+ a end foo (generic function with 1 method) julia> foo(2) 3 julia> a = 2 2 julia>
by h8hawk 7y ago
The same is true with Julia:
julia> a = 1
1
julia> function foo(x) x+ a end
foo (generic function with 1 method)
julia> foo(2)
3
julia> a = 2
2
julia> foo(2)
4