create Maxima list from multiple return values of a Lisp function



(cons '(mlist simp) (multiple-value-list (rename-file "foo.txt" "bar.txt")))

But of course the individual elements of the result don't print correctly.

On Thu, Jun 16, 2011 at 13:52, Edwin Woollett <woollett at charter.net> wrote:

> I am using GCL in my windows binary
> Maxima simply as a way to learn some
> Lisp to Maxima tricks.
>
> Both Raymond Toy and Leo Butler have provided methods
> of turning a Lisp list into a Maxima list.
>
> gcl:rename_file returns three values.
>
> How can I turn these into a Maxima list?
> -----------------------------
> (%i1) :lisp (rename-file "foo.txt" "bar.txt")
> #pbar.txt
> #pC:/work2/foo.txt
> #pC:/work2/bar.txt
> -------------------
> Ted Woollett
> windows (gcl) 5.24.0
>
>
>
> ______________________________**_________________
> Maxima mailing list
> Maxima at math.utexas.edu
> http://www.math.utexas.edu/**mailman/listinfo/maxima<http://www.math.utexas.edu/mailman/listinfo/maxima>;
>