Sha256: bf6d65cc5be0a29cb9425b994772d89cdc697f2865a454b87bfcd4cd9816e7b2
Contents?: true
Size: 1.01 KB
Versions: 78
Compression:
Stored size: 1.01 KB
Contents
# Word Count Given a phrase, count the occurrences of each word in that phrase. For example for the input `"olly olly in come free"` ```text olly: 2 in: 1 come: 1 free: 1 ``` * * * * For installation and learning resources, refer to the [exercism Racket page](http://exercism.io/languages/racket). You can run the provided tests through DrRacket, or via the command line. To run the test through DrRacket, simply open the test file and click the 'Run' button in the upper right. To run the test from the command line, run the test from the exercise directory with the following command: ``` raco test word-count-test.rkt ``` which will display the following: ``` raco test: (submod "word-count-test.rkt" test) 2 success(es) 0 failure(s) 0 error(s) 2 test(s) run 0 2 tests passed ``` ## Source This is a classic toy problem, but we were reminded of it by seeing it in the Go Tour. ## Submitting Incomplete Solutions It's possible to submit an incomplete solution so you can see how others have completed the exercise.
Version data entries
78 entries across 78 versions & 1 rubygems