! Copyright (C) 2012 John Benediktsson
! See http://factorcode.org/license.txt for BSD license
-USING: arrays assocs combinators combinators.short-circuit fry
-help help.apropos help.markup help.stylesheet help.topics io
-io.streams.string io.styles kernel math memoize namespaces
-sequences sequences.deep sorting splitting strings unicode
-words ;
+USING: arrays combinators combinators.short-circuit help
+help.apropos help.markup help.stylesheet help.topics io
+io.styles kernel math namespaces sequences sorting splitting
+strings unicode words ;
IN: help.search
search-words [ { } ] [
[ all-articles ] dip
dup length 1 > [
- '[ article-words _ swap subseq? ] filter
+ '[ article-words _ subseq-of? ] filter
] [
first '[ article-words [ _ head? ] any? ] filter
] if