title: SASS can I compose a variable name with a string and list value
body: <p>I have a number of SASS variables that reference SVG icons. Below is a simplified example:</p>
  <p>I would like to be able to loop through a list of strings and compose the SASS variable name in a way that's presented using the background style of the icon-checkbox class. My approach so far does not work. Can I anyone show me how/if this can be done in SASS.</p>
  <pre class="lang-scss prettyprint-override"><code>$icon-trash-grey: &quot;data:image/svg+xml;charset=UTF-8,&lt;svg data&gt;&quot;;
  $icon-save-grey: &quot;data:image/svg+xml;charset=UTF-8,&lt;svg data&gt;&quot;;
  
  $icon-list: trash, save; // list of icon names
      
  .icon-checkbox {
      each $key in $icon-list {
          background: url($icon-#{$key}-grey);
          // other styles
      }
  }
  </code></pre>
  <p>Thanks in advance</p>