view 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
line wrap: on
line source

-module(networked_client).
-export([translate/2]).

translate(To, Word) ->
    To ! { node(), Word },
    receive
        Translation -> io:format("~s~n", [Translation])
    end.