outform2.spad line 13 [edit on github]
This package implements tools form handling OutputForm
arguments(f)
gives arguments of form f
. Valid only when atom?(f
) is false
atom?(f)
checks if form f
is atomic, false
means composite
atom_to_string(f)
converts f
to string form.
construct(op, la)
creates OutputForm with operator op
and arguments la
empty?(f)
checks if form f
is empty.
has_op?(f, s)
returns true
is f
is a composite from with operator s
, otherwise returns false
integer(f)
gives integer corresponding to f
. Valid only when integer?(f
) is true
integer?(f)
checks if f
is an integer, this implies atom?(f
)
is_symbol?(f, s)
returns true
if form is symbol s
, otherwise returns false
operator(f)
gives operator (head) of form f
. Valid only when atom?(f
) is false
precondition(f)
prepares form for formatting.
string(f)
gives string corresponding to f
. Valid only when string?(f
) is true
string?(f)
checks if f
is a string, this implies atom?(f
)
symbol(f)
gives symbol corresponding to f
. Valid only when symbol?(f
) is true
symbol?(f)
checks if f
is a symbol, this implies atom?(f
)