build enum map without mutable state
Merge pull request #2 from ryanlecompte/master

Build enum map without mutable state