O'Reilly logo
  • Thanos Polymeneas thinks this is interesting:

For example, we can define a function count_characters(Str) that returns a map of the number of times a particular character occurs in a string.

From

Cover of Programming Erlang, 2nd Edition

Note

The code is invalid:
https://stackoverflow.com/questions/44247735/map-pattern-matching-in-erlang-unexpected-error-unbound