strange?

mbj@REDACTED mbj@REDACTED
Fri Nov 18 10:42:57 CET 2005


Here's a late submission to the obfuscation contest.

Look at the code.  Try to figure out what a:c() returns.  Run it on
the latest erlang.


-module(a).
-compile(export_all).

c() ->
    M = {a, b},
    M:k(a).

b(k, a) ->
     wow.

k(A, T) ->
    element(2, T).



/martin



More information about the erlang-questions mailing list