]> gitweb.factorcode.org Git - factor.git/commitdiff
benchmark.knucleotide: Fix usage of <clumps>.
authorDoug Coleman <doug.coleman@gmail.com>
Sat, 23 Mar 2013 20:27:13 +0000 (13:27 -0700)
committerDoug Coleman <doug.coleman@gmail.com>
Sat, 23 Mar 2013 20:27:13 +0000 (13:27 -0700)
extra/benchmark/knucleotide/knucleotide.factor

index 63a71fb80992d9bef356ac89df94c929f54a56c9..67f563849cae27cd34caed1e896a9c42aa3dfe8a 100644 (file)
@@ -18,7 +18,7 @@ CONSTANT: knucleotide-in "vocab:benchmark/knucleotide/knucleotide-input.txt"
     CHAR: \n swap remove >upper ;
 
 : handle-table ( inputs n -- )
-    <clumps>
+    clump
     [ histogram sort-values reverse ] [ length ] bi
     '[
         [ first write bl ]
@@ -26,7 +26,7 @@ CONSTANT: knucleotide-in "vocab:benchmark/knucleotide/knucleotide-input.txt"
     ] each ;
 
 : handle-n ( input x -- )
-    [ nip ] [ length <clumps> histogram ] 2bi at 0 or "%d\t" printf ;
+    [ nip ] [ length clump histogram ] 2bi at 0 or "%d\t" printf ;
 
 : process-input ( input -- )
     [ 1 handle-table nl ]