strange?
Ulf Wiger (AL/EAB)
ulf.wiger@REDACTED
Fri Nov 18 10:58:20 CET 2005
wow. (:
/Uffe
> -----Original Message-----
> From: owner-erlang-questions@REDACTED
> [mailto:owner-erlang-questions@REDACTED] On Behalf Of mbj@REDACTED
> Sent: den 18 november 2005 10:43
> To: erlang-questions@REDACTED
> Subject: strange?
>
> 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