Factor Documentation
|
Home
|
Glossary
|
Search
factorcode.org
completion, ( short candidate -- )
Vocabulary
tools.completion
Inputs and outputs
short
a
string
candidate
a pair
{ obj full }
Word description
Adds the result of
completion
to the end of the sequence being constructed by
make
if the score is positive.
Definition
USING:
kernel
make
math
sequences.private
;
IN:
tools.completion
:
completion,
( short candidate -- )
completion
dup
first-unsafe
0
>
[
,
]
[
drop
]
if
;