Enter Our Giveaways
Elixir Programming Language Forum
How to define recursive anonymous function in Elixir?
Questions & Help
Questions
recursion
,
syntax
,
lambda
Logan
March 9, 2021, 11:35pm
7
f = fn ([], _fun) -> [] ([h | t], fun) -> [h+1 | fun.(t, fun)] end f.([1, 2, 3], f)
show post in topic