title: How exactly do lookup tables work and how to implement them?
body: <p>I made a program recently that dealt with a lot of if/else statements to return particular values. Someone recommended using lookup tables instead. My question is,</p>
  <ol>
  <li>How do they work and how do you implement them?</li>
  <li>What is the difference between a map, hash table, and lookup table.</li>
  </ol>