The inverse of a function...

Joe Armstrong <>
Tue Mar 9 10:47:42 CET 2004

```Is the inverse of:

f() ->
X ->
...
f()
end

something like:

g() ->
.. ! X,
g()

:-)

/Joe

On Tue, 9 Mar 2004, Thomas Arts wrote:

> No, this is not possible without interpreting either the
> source or the binary.
>
> If you know more about your function f, you might be
> able to compute the inverse from the answer, but
> since you have not sepcified that, I guess you don't
> have this information.
>
> /Thomas
>
> ---
> Dr Thomas Arts
>      Program Manager
>      Software Engineering and Management
> IT-university in Gothenburg
> Box 8718, 402 75 Gothenburg, Sweden
> http://www.ituniv.se/
>
> Tel +46 31 772 6031
> Fax +46 31 772 4899
>
>
> ----- Original Message -----
> To: <>
> Sent: Monday, March 08, 2004 5:06 PM
> Subject: The inverse of a function...
>
>
> > 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,
> >
> >
> > --
> > ======================================================
> > 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:
> >             http://www.diit.unict.it/users/csanto
> >