Use array map for simple stuff.
Merge pull request #3 from bar/patch-1

Use array map for simple stuff.