Handbook
Glossary
one-line-elt
Factor handbook
»
UI framework
»
Building user interfaces
»
Pre-made UI gadgets
»
Editor gadgets
»
Documents
»
Document elements
Prev:
word-elt
Next:
line-elt ( -- value )
Vocabulary
documents
.
elements
Class description
An element representing a single line. The
prev-elt
and
next-elt
words return the location of the beginning and the end of the line at the current location.
See also
line-elt
Definition
IN:
documents.elements
SINGLETON:
one-line-elt
Methods
USING:
arrays
documents
documents.elements
kernel
sequences
;
M:
one-line-elt
next-elt
drop
[
first
dup
]
dip
doc-line
length
2array
;
USING:
arrays
documents.elements
kernel
sequences
;
M:
one-line-elt
prev-elt
2drop
first
0
2array
;