Sha256: a81b2fccb1e891766f8bda2df64fbbbb046b12e31f8e97d3c0be5f837e6cdaef
Contents?: true
Size: 680 Bytes
Versions: 387
Compression:
Stored size: 680 Bytes
Contents
## Hints To complete this exercise you need to implement the function `wordCount`, that takes a *text* and returns how many times each *word* appears. If it is your first time solving this exercise, it is recommended that you stick to the provided signature: ```haskell wordCount :: String -> [(String, Int)] ``` Later, it may be a good idea to revisit this problem and play with other data types and libraries: - `Text`, from package *text*. - `Map`, from package *containers*. - `MultiSet`, from package *multiset* The test suite was intentionally designed to accept almost any type signature that makes sense, so you are encouraged to find the one you think is the best.
Version data entries
387 entries across 387 versions & 1 rubygems