[Openmcl-devel] inverse function

Taoufik Dachraoui taoufik at mazeboard.com
Sat Feb 13 04:20:42 PST 2010


Dear,

Does someone know if there is any work done to generate an inverse of any
given lisp function (if possible).

Example:

> (defun f (x)  (+ x 1))
> (f 2)
3
> (funcall (inverse #'f) 3)
2
> (funcall (inverse #'f) (f 5))
5

This example is very simple and serves only to describe my needs; I would
like to use the inverse function
for complex lisp defined functions.

Thank you for your help

Taoufik
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.clozure.com/pipermail/openmcl-devel/attachments/20100213/b7363286/attachment.htm>


More information about the Openmcl-devel mailing list