]> gitweb.factorcode.org Git - factor.git/blobdiff - extra/reports/noise/noise.factor
core/basis/extras: use zip-with in a few places.
[factor.git] / extra / reports / noise / noise.factor
index 3f4090c118a755d6aebf1bb202683c376f0c227b..c6a735564f92a68d688d9032d9a021a4e938d5c8 100644 (file)
@@ -120,7 +120,7 @@ M: lambda-word word-noise-factor
 
 : noisy-words ( -- alist )
     all-words flatten-generics
-    [ dup word-noise-factor ] { } map>assoc
+    [ word-noise-factor ] zip-with
     sort-values reverse ;
 
 : noise. ( alist -- )
@@ -140,7 +140,7 @@ M: lambda-word word-noise-factor
     ] if-empty ;
 
 : noisy-vocabs ( -- alist )
-    loaded-vocab-names [ dup vocab-noise-factor ] { } map>assoc
+    loaded-vocab-names [ vocab-noise-factor ] zip-with
     sort-values reverse ;
 
 : noise-report ( -- )