Dear,<div><br></div><div>Does someone know if there is any work done to generate an inverse of any given lisp function (if possible).</div><div><br></div><div>Example:</div><div><br></div><div>> (defun f (x) (+ x 1))</div>
<div>> (f 2)</div><div>3</div><div><div>> (funcall (inverse #'f) 3)</div><div>2</div><div><div>> (funcall (inverse #'f) (f 5))</div><div>5</div><div><br></div></div></div><div>This example is very simple and serves only to describe my needs; I would like to use the inverse function</div>
<div>for complex lisp defined functions.</div><div><br></div><div>Thank you for your help</div><div><br></div><div>Taoufik</div>