The inverse of a function...
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
To be blunt: No. You'll need Prolog to do that sort of thing.
Richard Carlsson () (This space intentionally left blank.)
E-mail: 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