3 ms·
It's impossible to choose a favourite, but here's a beautiful snippet, courtesy of Joe Armstrong [0] universal_server() -> receive {become, F}
by QuinnWilton 7y ago
It's impossible to choose a favourite, but here's a beautiful snippet, courtesy of Joe Armstrong [0]
universal_server() ->
receive
{become, F} ->
F()
end.
[0] https://joearms.github.io/published/2013-11-21-My-favorite-erlang-program.html https://joearms.github.io/published/2013-11-21-My-favorite-e...