view 5-Erlang/networked_client.erl @ 87:2b5341fc4555

Add Haskell Day 1 code and notes
author IBBoard <dev@ibboard.co.uk>
date Sat, 15 Jun 2019 17:31:22 +0100
parents 75dbcd30dee5
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.