The inverse of a function...
Corrado Santoro
csanto@REDACTED
Mon Mar 8 17:06:40 CET 2004
Hi Erlang gurus,
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)?
Thanx,
-Corrado
--
======================================================
Eng. Corrado Santoro, Ph.D.
University of Catania - Engineering Faculty
Department of Computer Science and
Telecommunications Engineering
Viale A. Doria, 6 - 95125 CATANIA (ITALY)
Tel: +39 095 7382364 Fax: +39 095 7382397
+39 095 7382365
+39 095 7382380
EMail: csanto@REDACTED
Personal Home Page:
http://www.diit.unict.it/users/csanto
NUXI Home Page:
http://nuxi.iit.unict.it
======================================================
More information about the erlang-questions
mailing list