apropos now prints the score

slava 2006-08-12 21:02:14 +00:00
parent b150e155d9
commit 41040c6a7b
1 changed files with 3 additions and 1 deletions

View File

@ -99,6 +99,8 @@ math namespaces prettyprint sequences strings styles ;
: apropos ( str -- )
completions [
first3 dup presented associate [
word-name fuzzy. drop
dup word-vocabulary write bl word-name fuzzy.
" (score: " swap >fixnum number>string ")" append3
write
] with-nesting terpri
] each ;