]> gitweb.factorcode.org Git - factor.git/commitdiff
system: better key-for-value.
authorJohn Benediktsson <mrjbq7@gmail.com>
Sun, 30 Nov 2014 15:32:34 +0000 (07:32 -0800)
committerJohn Benediktsson <mrjbq7@gmail.com>
Sun, 30 Nov 2014 16:28:18 +0000 (08:28 -0800)
core/system/system.factor

index 27d2de09191541c2fc0e4846f1c0e719ae3569b3..f3f847efc8591a248ea006f1c1e3058b99e492fe 100644 (file)
@@ -42,7 +42,7 @@ CONSTANT: string>os-hash H{
 }
 
 : key-for-value ( key hash -- val )
-    >alist [ first2 nip = ] with filter first first ;
+    >alist [ second = ] with find nip first ;
 
 : string>cpu ( str -- class )
     string>cpu-hash at ;