Handbook
Glossary
cursor-distance ( cursor cursor -- n )
Vocabulary
cursors
Inputs
cursor
an
object
cursor
an
object
Outputs
n
an
object
Definition
IN:
cursors
GENERIC:
cursor-distance
( cursor cursor -- n )
Methods
USING:
accessors
cursors
kernel
math
;
M:
linear-cursor
cursor-distance
[
[
value>>
]
bi@
-
]
[
nip
delta>>
]
2bi
up/i
;
inline
USING:
accessors
cursors
kernel
math
;
M:
sequence-cursor
cursor-distance
[
n>>
]
bi@
-
;
inline