The inverse of a function...
Richard Carlsson
richardc@REDACTED
Mon Mar 8 20:14:40 CET 2004
On Mon, 8 Mar 2004, Corrado Santoro wrote:
> I have a function like this:
>
> f(caesar) -> ...;
> f(caius) -> ....;
> f(giulius) -> ....
>
> I would like to have a function that, given the name 'f', returns the
> list [caesar, caius, giulius] (or similar).
> Is it possibile to do this (obviously without re-interpreting the source
> file)?
To be blunt: No. You'll need Prolog to do that sort of thing.
/Richard
Richard Carlsson (richardc@REDACTED) (This space intentionally left blank.)
E-mail: Richard.Carlsson@REDACTED WWW: http://user.it.uu.se/~richardc/
"Having users is like optimization: the wise course is to delay it."
-- Paul Graham
More information about the erlang-questions
mailing list