[erlang-questions] Good one-liners?

Richard Carlsson richardc@REDACTED
Wed Mar 28 16:31:06 CEST 2007


Dominic Williams wrote:
>> Hi, I keep seeing these perl programmers in teeshirts with
>> one-liners printed on them. It made me think about what erlang
>> one-liners I would want on a teeshirt.
> 
> I would go for something like:
> 
> world ! hello
> 
> with whichever atoms suit your taste !

A small counter process, perhaps:

   p(C) -> receive Q -> p(Q!C+1) end.

or maybe an RPC:

   receive {Q, F} -> Q ! F() end

or something more slogan-like:

   receive stop -> ok end

     /Richard




More information about the erlang-questions mailing list