]> gitweb.factorcode.org Git - factor.git/blobdiff - basis/colors/constants/constants.factor
use reject instead of [ ... not ] filter.
[factor.git] / basis / colors / constants / constants.factor
index 14d3e0ad1aaebb23d16bec19bd94dd88aa1b11ed..ad489a51a2d26a086e5364554c22d88d2a3c879a 100644 (file)
@@ -12,7 +12,7 @@ IN: colors.constants
     [ blank? ] trim-head H{ { CHAR: \s CHAR: - } } substitute swap ;
 
 : parse-colors ( lines -- assoc )
-    [ "!" head? not ] filter
+    [ "!" head? ] reject
     [ 11 cut [ " \t" split harvest ] dip suffix ] map
     [ parse-color ] H{ } map>assoc ;