3 ms·
significantly more verbose Erlang and Haskell examples There are less verbose (but also less well-formed) solutions in these languages. Here's a working, hacky
by angusgr 15y ago
significantly more verbose Erlang and Haskell examples
There are less verbose (but also less well-formed) solutions in these languages. Here's a working, hacky but still readable, 3-line one I just banged out for Erlang: http://pastebin.com/eZckJp9p http://pastebin.com/eZckJp9p
- angusgr 15y ago... and a version that trades a line for calling an actual function named sleep(), given there are rules to this silly game http://pastebin.com/heQ43K0E http://pastebin.com/heQ43K0E ...