Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
jolux
· 3y ago · 0 comments
you can define functions outside of a module using fn blocks
Comments
[–]
throwawaymaths
3y ago
There's good odds it will come to elixir, since support just landed in Erlang
[–]
erszcz
3y ago
To be specific, it has landed in the Erlang shell with Erlang/OTP 26. Defining inline functions in source code, on the other hand, has been possible for years (like 20+ years).
[–]
skndr
3y ago
There's also defining a module and then `import`ing it.