Exercism Elixir: grains, with capture syntax