title: Multiple values for one property with variable argument lists in Sass
body: <p>I'm looking to have a mixin like <code>+stacktextshadow(blue, red, green)</code> spit out <code>text-shadow: 1px 1px 0 blue, 2px 2px 0 red, 3px 3px 0 green;</code></p>
  
  <p>Currently this is what I have: </p>
  
  <pre><code>=stacktextshadow($shadows...)
    @for $i from 1 through length($shadows)
      $shadow1: append(1px 1px 0, nth($shadows,1))
      $shadow2: append(2px 2px 0, nth($shadows,2))
      $shadow3: append(3px 3px 0, nth($shadows,3))
      text-shadow: $shadow1, $shadow2, $shadow3
  
  h1
    +stacktextshadow(blue, red, green)
  </code></pre>
  
  <p>Which gives me:</p>
  
  <pre><code>h1 {
    text-shadow: 1px 1px 0 blue, 2px 2px 0 red, 3px 3px 0 green;
    text-shadow: 1px 1px 0 blue, 2px 2px 0 red, 3px 3px 0 green;
    text-shadow: 1px 1px 0 blue, 2px 2px 0 red, 3px 3px 0 green; }
  </code></pre>
  
  <p>Tripled. And I know why, because it's running the <code>text-shadow</code> property declaration three times in the <code>@for</code> loop. I'd like it to only do that once. However, when I take the <code>text-shadow</code> out of the foor loop, it doesn't have access to <code>$shadow1</code>, <code>$shadow2</code>, etc.</p>
  
  <p>Also, I'd like to not repeat myself with something along the lines of: <code>$shadow($i): append($i*1px $i*1px 0, nth($shadows,$i))</code> (which obviously doesn't work) so that it is all done dynamically—whether I pass one argument into the mixin, or 20.</p>