Show
Ignore:
Timestamp:
07/28/09 06:46:39 (4 months ago)
Author:
jmaessen
Message:

[demos] Fixed wordcount2 to only output first 100 entries---matching
wordcount and avoiding printing "fail'd" in the output!

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/ProjectFortress/demos/wordcount2.fss

    r3993 r4016  
    123123    inv = nanoTime() 
    124124    time("Inverted database",acq,inv) 
    125     for (c,m) <- seq(invDatabase.reverse()) do 
     125    entries = <|[\(ZZ32, List[\String\])\] (c,m) | (c,m) <- invDatabase.reverse() |> 
     126    for (c,m) <- seq(entries[0#100]) do 
    126127        println(m ": " c " times") 
    127128    end