]> 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 6f1b3cb951fc796a1a7d565f59fd9dc402f46527..ad489a51a2d26a086e5364554c22d88d2a3c879a 100644 (file)
@@ -9,10 +9,10 @@ IN: colors.constants
 : parse-color ( line -- name color )
     first4
     [ [ string>number 255 /f ] tri@ 1.0 <rgba> ] dip
-    [ blank? ] trim-head { { CHAR: \s CHAR: - } } substitute swap ;
+    [ 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 ;