Word frequency: Difference between revisions
m
Swift - use prefix instead of array slice
m (added whitespace.) |
m (Swift - use prefix instead of array slice) |
||
Line 4,265:
// print the top count words
print("Rank\tWord\tCount")
for (i, (word, n)) in wordCounts
print("\(i + 1)\t\(word)\t\(n)")
}
|