OutputFormToolsΒΆ
outform2.spad line 13 [edit on github]
This package implements tools form handling OutputForm
- arguments: OutputForm -> List OutputForm
arguments(f)
gives arguments of formf
. Valid only when atom?(f
) isfalse
- atom?: OutputForm -> Boolean
atom?(f)
checks if formf
is atomic,false
means composite
- atom_to_string: OutputForm -> String
atom_to_string(f)
convertsf
to string form.
- construct: (OutputForm, List OutputForm) -> OutputForm
construct(op, la)
creates OutputForm with operatorop
and arguments la
- empty?: OutputForm -> Boolean
empty?(f)
checks if formf
is empty.
- has_op?: (OutputForm, Symbol) -> Boolean
has_op?(f, s)
returnstrue
isf
is a composite from with operators
, otherwise returnsfalse
- integer?: OutputForm -> Boolean
integer?(f)
checks iff
is an integer, this implies atom?(f
)
- integer: OutputForm -> Integer
integer(f)
gives integer corresponding tof
. Valid only when integer?(f
) istrue
- is_symbol?: (OutputForm, Symbol) -> Boolean
is_symbol?(f, s)
returnstrue
if form is symbols
, otherwise returnsfalse
- operator: OutputForm -> OutputForm
operator(f)
gives operator (head) of formf
. Valid only when atom?(f
) isfalse
- precondition: OutputForm -> OutputForm
precondition(f)
prepares form for formatting.
- string?: OutputForm -> Boolean
string?(f)
checks iff
is a string, this implies atom?(f
)
- string: OutputForm -> String
string(f)
gives string corresponding tof
. Valid only when string?(f
) istrue
- symbol?: OutputForm -> Boolean
symbol?(f)
checks iff
is a symbol, this implies atom?(f
)
- symbol: OutputForm -> Symbol
symbol(f)
gives symbol corresponding tof
. Valid only when symbol?(f
) istrue