axiom-developer
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Axiom-developer] coerce to SEX


From: Tim Daly
Subject: [Axiom-developer] coerce to SEX
Date: Thu, 1 Jul 2004 11:00:46 -0400

SEX, SEXOF, and SEXCAT are Axiom cover functions for lisp S-expressions.

Thus if you want to construct something you have to build it up from
the primitives using things like:

-> m:=[1::SEX, 2::SEX]
     [1,2]
                 Type: List SExpression

having this primitive you can "upgrade" it to a list structure with:

-> n:=m::SEX
     (1 2)
                 Type: SExpression

and then you can operate on it:

-> car(n)
     1
                 Type: SExpression

do a ")show SEX" and you can see the ways you can manipulate the SExpression.

SEX is pretty low level stuff. It is essentially lisp list manipulation
at the Axiom level.

Tim




reply via email to

[Prev in Thread] Current Thread [Next in Thread]