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 formfis atomic,falsemeans composite
- atom_to_string: OutputForm -> String
atom_to_string(f)convertsfto string form.
- construct: (OutputForm, List OutputForm) -> OutputForm
construct(op, la)creates OutputForm with operatoropand arguments la
- empty?: OutputForm -> Boolean
empty?(f)checks if formfis empty.
- has_op?: (OutputForm, Symbol) -> Boolean
has_op?(f, s)returnstrueisfis a composite from with operators, otherwise returnsfalse
- integer?: OutputForm -> Boolean
integer?(f)checks iffis 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)returnstrueif 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 iffis 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 iffis a symbol, this implies atom?(f)
- symbol: OutputForm -> Symbol
symbol(f)gives symbol corresponding tof. Valid only when symbol?(f) istrue