Sha256: 79a04deb1bdfbb70f5f43eca29d85a4d0a0d8a7e997302f5fad9acb019fe3447

Contents?: true

Size: 777 Bytes

Versions: 5

Compression:

Stored size: 777 Bytes

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"`

```plain
olly: 2
in: 1
come: 1
free: 1
```


For installation and learning resources, refer to the
[exercism help page](http://exercism.io/languages/groovy).

Run the tests by executing the test script.

```
$ groovy ./HelloWorldSpec.groovy
```

After the first test(s) pass, continue by commenting out or removing the `@Ignore` annotations prepending other tests.

When all tests pass, congratulations!

## 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

5 entries across 5 versions & 1 rubygems

Version Path
trackler-2.2.1.9 tracks/groovy/exercises/word-count/README.md
trackler-2.2.1.8 tracks/groovy/exercises/word-count/README.md
trackler-2.2.1.7 tracks/groovy/exercises/word-count/README.md
trackler-2.2.1.6 tracks/groovy/exercises/word-count/README.md
trackler-2.2.1.5 tracks/groovy/exercises/word-count/README.md