bash-3.2$ maxima
Maxima 5.26.0 http://maxima.sourceforge.net
using Lisp SBCL 1.0.57
Distributed under the GNU Public License. See the file COPYING.
Dedicated to the memory of William Schelter.
The function bug_report() provides bug reporting information.
Good afternoon,
I was exploring my understanding of the internals. My idea was to take
something apart and put it back together.
(%i1) teste : a + b $
First surprise was that op(teste) is not a symbol but
nounify(op(teste)) is. That's fine.
(%i2) lop : nounify(op(teste));
(%o2) mplus
So here's the second surprise that args(teste) are reversed.
(%i3) largs: args(teste);
(%o3) [b, a]
(%i5) buildq( [mop : lop, margs : largs], mop ( splice(margs)));
(%o5) mplus(b, a)
My question is: Am I guaranteed that reverse(args( ... )) is the correct order?
--
D. E. (Steve) Stevenson
(Almost emeritus) Associate Professor
Director, Institute for Modeling and Simulation Applications.
Clemson University
steve at clemson dot edu
Anyone who has ever looked into the glazed eyes of a soldier dying on
the battlefield will think hard before starting a war. -Otto von
Bismarck, statesman (1815-1898)