Sha256: b9138fcbd43322c48ae64cc23625d045ecb2eef6022869f27788c23f301f3136

Contents?: true

Size: 300 Bytes

Versions: 17

Compression:

Stored size: 300 Bytes

Contents

# Word Count

Write a program that given a string can count the occurrences of each word in that string.


```ruby
words = Words.new("olly olly in come free")
words.count
# => {"olly" => 2, "in" => 1, "come" => 1, "free" => 1}
```




## Source

The golang tour [view source](http://tour.golang.org)

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
exercism-0.0.28 test/fixtures/approvals/alice_gets_word_count_readme.approved.txt
exercism-0.0.27 test/fixtures/approvals/alice_gets_word_count_readme.approved.txt
exercism-0.0.26 test/fixtures/approvals/alice_gets_word_count_readme.approved.txt
exercism-0.0.25 test/fixtures/approvals/alice_gets_word_count_readme.approved.txt
exercism-0.0.24 test/fixtures/approvals/alice_gets_word_count_readme.approved.txt
exercism-0.0.23 test/fixtures/approvals/alice_gets_word_count_readme.approved.txt
exercism-0.0.22 test/fixtures/approvals/alice_gets_word_count_readme.approved.txt
exercism-0.0.21 test/fixtures/approvals/alice_gets_word_count_readme.approved.txt
exercism-0.0.20 test/fixtures/approvals/alice_gets_word_count_readme.approved.txt
exercism-0.0.19 test/fixtures/approvals/alice_gets_word_count_readme.approved.txt
exercism-0.0.18 test/fixtures/approvals/alice_gets_word_count_readme.approved.txt
exercism-0.0.17 test/fixtures/approvals/alice_gets_word_count_readme.approved.txt
exercism-0.0.16 test/fixtures/approvals/alice_gets_word_count_readme.approved.txt
exercism-0.0.15 test/fixtures/approvals/alice_gets_word_count_readme.approved.txt
exercism-0.0.14 test/fixtures/approvals/alice_gets_word_count_readme.approved.txt
exercism-0.0.13 test/fixtures/approvals/alice_gets_word_count_readme.approved.txt
exercism-0.0.12 test/fixtures/approvals/alice_gets_word_count_readme.approved.txt