title: Is it possible to loop setters and getters?
body: <p>I'm fairly confident that there's no way this could work, but I wanted to ask anyway just in case I'm wrong:</p>
  
  <p>I've heard many times that whenever you have a certain number of lines of very similar code in one batch, you should always loop through them.</p>
  
  <p>So say I have something like the following.</p>
  
  <pre><code>setPos1(getCard1());
  setPos2(getCard2());
  setPos3(getCard3());
  setPos4(getCard4());
  setPos5(getCard5());
  setPos6(getCard6());
  setPos7(getCard7());
  setPos8(getCard8());
  setPos9(getCard9());
  setPos10(getCard10());
  setPos11(getCard11());
  setPos12(getCard12());
  </code></pre>
  
  <p>There is no way to cut down on lines of code as, e.g., below, right?</p>
  
  <pre><code>for (i = 0; i &lt; 12; i++) {
  setPos + i(getCard + i)());
  }
  </code></pre>
  
  <p>I'm sure this will have been asked before somewhere, but neither Google nor SO Search turned up with a negative proof.</p>
  
  <p>Thanks for quickly confirming this!</p>