Skip to content

Commit

Permalink
Updates README to reflect changes in tree-map branch
Browse files Browse the repository at this point in the history
  • Loading branch information
defndaines committed Jun 4, 2017
1 parent d02e204 commit 527548b
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -108,8 +108,8 @@ well as the sorting functions, `alphabetical-order` and `frequency-order`.
#### `word-count`
Word count accepts a single string and returns a map of words to frequency
values.
Word count accepts a single string or a sequnce of strings and returns a map of
words to frequency values.
```clojure
(require '[concordance.core :as concordance])
Expand Down Expand Up @@ -138,7 +138,7 @@ values.
The exposed
[Comparator](http://docs.oracle.com/javase/8/docs/api/java/util/Comparator.html)
functions are designed to work with the core `sort-by` function.
function is designed to work with the core `sort-by` function.
```clojure
(sort-by concordance/frequency-order counts)
Expand All @@ -161,8 +161,8 @@ preference.
This version is more efficient in memory, since it doesn't need to hold the
whole file in memory to create the map. It can also store the word counts in a
sorted collection, so does not incur the cost of sorting when the user has
requested alphabetical ordering.
sorted collection, so does not incur any additional cost of sorting when the
user has requested alphabetical ordering.
## License
Expand Down

0 comments on commit 527548b

Please sign in to comment.