Handbook
Glossary
pprint-elements ( seq -- )
Factor handbook
»
Developer tools
»
The prettyprinter
»
Extending the prettyprinter
»
Prettyprinting more complex literals
Prev:
pprint-word ( word -- )
Next:
pprint-string ( obj str prefix suffix -- )
Vocabulary
prettyprint
.
backend
Inputs
seq
a
sequence
Outputs
None
Word description
Prettyprints the elements of a sequence, trimming the sequence to
length-limit
if necessary.
Notes
This word should only be called from inside the
with-pprint
combinator.
Definition
USING:
kernel
math.parser
prettyprint.custom
prettyprint.sections
sequences
;
IN:
prettyprint.backend
:
pprint-elements
( seq -- )
do-length-limit
[
[
pprint*
]
each
]
dip
[
number>string
"~"
" more~"
surround
text
]
when*
;