Advertisement
Guest User

julia dictionary of functions

a guest
Aug 28th, 2018
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Julia 0.12 KB | None | 0 0
  1. #works
  2. f(x::Int64) = x +1
  3. my_functions = Dict("f" => f)
  4.  
  5. #does not work
  6. new_functions = Dict("g" => g(x::Int64) = x + 5)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement