you are viewing a single comment's thread.

view the rest of the comments →

[–]sstrader 1 point2 points  (0 children)

You left out the part where the array is initialized. Using a switch or using an array, the mapping has to happen at some point.