changeset 283 | ef5f62bf5987 |
parent 227 | b5f3e814a710 |
child 323 | 1f8005b4cdf6 |
282:ec9773fe1dc0 | 283:ef5f62bf5987 |
---|---|
1 |
1 |
2 import CW7a._ |
|
2 |
3 |
3 assert(occurrences(List("a", "b", "b", "c", "d")) == Map("a" -> 1, "b" -> 2, "c" -> 1, "d" -> 1)) |
4 assert(occurrences(List("a", "b", "b", "c", "d")) == Map("a" -> 1, "b" -> 2, "c" -> 1, "d" -> 1)) |
4 |
5 |
5 assert(occurrences(List("d", "b", "d", "b", "d")) == Map("d" -> 3, "b" -> 2)) |
6 assert(occurrences(List("d", "b", "d", "b", "d")) == Map("d" -> 3, "b" -> 2)) |