Handbook
Glossary
+line ( loc n -- newloc )
Factor handbook
»
UI framework
»
Building user interfaces
»
Pre-made UI gadgets
»
Editor gadgets
»
Documents
»
Document locations
Prev:
+col ( loc n -- newloc )
Next:
=col ( n loc -- newloc )
Vocabulary
documents
Inputs
loc
a pair of integers
n
an
integer
Outputs
newloc
a pair of integers
Word description
Adds an integer to the line number of a line/column pair.
See also
+col
,
=col
,
=line
Definition
USING:
arrays
kernel
math
sequences
;
IN:
documents
:
+line
( loc n -- newloc )
[
first2
swap
]
dip
+
swap
2array
;