comparison 5-Erlang/networked_client.erl @ 78:75dbcd30dee5

Add final exercise code from Erlang It works, but it never made much sense because there was too much magic
author IBBoard <dev@ibboard.co.uk>
date Sat, 01 Jun 2019 20:10:37 +0100
parents
children
comparison
equal deleted inserted replaced
77:7bab4843aec6 78:75dbcd30dee5
1 -module(networked_client).
2 -export([translate/2]).
3
4 translate(To, Word) ->
5 To ! { node(), Word },
6 receive
7 Translation -> io:format("~s~n", [Translation])
8 end.