vocabs.cache: use fry, its cleaner.

db4
John Benediktsson 2012-08-13 12:30:17 -07:00
parent df91fa9527
commit 2e8361fee8
1 changed files with 4 additions and 4 deletions

View File

@ -1,8 +1,8 @@
! Copyright (C) 2009 Slava Pestov.
! See http://factorcode.org/license.txt for BSD license.
USING: assocs kernel namespaces memoize init sequences vocabs
vocabs.hierarchy vocabs.loader vocabs.metadata vocabs.refresh
words ;
USING: assocs fry init kernel memoize namespaces sequences
vocabs vocabs.hierarchy vocabs.loader vocabs.metadata
vocabs.refresh words ;
IN: vocabs.cache
: reset-cache ( vocab -- )
@ -10,7 +10,7 @@ IN: vocabs.cache
[ root-cache get-global delete-at ]
[
\ vocab-file-contents "memoize" word-prop
[ drop [ first vocab-name ] [ = not ] bi* ] with assoc-filter! drop
'[ drop first vocab-name _ = not ] assoc-filter! drop
] bi
\ all-vocabs-recursive reset-memoized
\ all-authors reset-memoized