Mercurial > repos > other > SevenLanguagesInSevenWeeks
view 5-Erlang/networked_client.erl @ 103:98be775c533c default tip
An odd "non-determinism" example from StackOverflow
It is clever, but doesn't make much sense as to how it gets its results
author | IBBoard <dev@ibboard.co.uk> |
---|---|
date | Sun, 14 Jul 2019 13:44:13 +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.