Does Elixir support named anonymous functions similar to Clojure? For example, I want to do something like this:
fib_fun = fn fib n -> if n <= 1 do 1 else fib(n - 1) + fib(n - 2) end end
so that I can recursively call the anonymous function.
Does Elixir support named anonymous functions similar to Clojure? For example, I want to do something like this:
fib_fun = fn fib n -> if n <= 1 do 1 else fib(n - 1) + fib(n - 2) end end
so that I can recursively call the anonymous function.