SExpressionCategory(Str, Sym, Int, Flt)¶
sex.spad line 1 [edit on github]
Str: SetCategory
Sym: SetCategory
Int: SetCategory
Flt: SetCategory
This category allows the manipulation of Lisp values while keeping the grunge fairly localized.
- #: % -> Integer
\#((a1, ..., an))returnsn.
- atom?: % -> Boolean
atom?(s)istrueifsis a Lisp atom.
- car: % -> %
car((a1, ..., an))returnsa1.
- cdr: % -> %
cdr((a1, ..., an))returns(a2, ..., an).
- coerce: % -> OutputForm
from CoercibleTo OutputForm
- convert: Flt -> %
convert(x)returns the Lisp atomx.
- convert: Int -> %
convert(x)returns the Lisp atomx.
- convert: List % -> %
convert([a1, ..., an])returns theS-expression(a1, ..., an).
- convert: Str -> %
convert(x)returns the Lisp atomx.
- convert: Sym -> %
convert(x)returns the Lisp atomx.
- destruct: % -> List %
destruct((a1, ..., an))returns the list [a1, …, an].
- elt: (%, Integer) -> %
elt((a1, ..., an), i)returnsai.
- eq: (%, %) -> Boolean
eq(s, t)istrueif EQ(s,t) istruein Lisp.
- float?: % -> Boolean
float?(s)istrueifsis an atom and belong toFlt.
- float: % -> Flt
float(s)returnssas an element ofFlt; Error: ifsis not an atom that also belongs toFlt.
- hash: % -> SingleInteger
from Hashable
- hashUpdate!: (HashState, %) -> HashState
from Hashable
- integer?: % -> Boolean
integer?(s)istrueifsis an atom and belong to Int.
- integer: % -> Int
integer(s)returnssas an element of Int. Error: ifsis not an atom that also belongs to Int.
- latex: % -> String
from SetCategory
- list?: % -> Boolean
list?(s)istrueifsis a Lisp list, possibly ().
- null?: % -> Boolean
null?(s)istrueifsis theS-expression ().
- pair?: % -> Boolean
pair?(s)istrueifshas is a non-null Lisp list.
- string?: % -> Boolean
string?(s)istrueifsis an atom and belong toStr.
- string: % -> Str
string(s)returnssas an element ofStr. Error: ifsis not an atom that also belongs toStr.
- symbol?: % -> Boolean
symbol?(s)istrueifsis an atom and belong toSym.
- symbol: % -> Sym
symbol(s)returnssas an element ofSym. Error: ifsis not an atom that also belongs toSym.