How to call "multiple variable arguments" in Sass or SCSS
<p>I am trying to combine element/classes with input type, in one mixin Where i have two list one is for classes and one is for required input type check below mixin. But it gives me an error. </p>

<pre><code>=input($elements... , $inputs...)
  @each $input in $inputs
    input[type="#{$input}"]
      @content

  @each $element in $elements
    #{$element}
      @content

+input((select,.sample-class),(text,button))
  text-align: center
</code></pre>

<p>About mixin gives me an error </p>

<pre><code>Error: Invalid CSS after "($elements... ": expected ")", was ", $inputs...)"
    on line 1 of ../sass/2-modules/_form.sass
    from line 2 of ../sass/2-modules/_modules.sass
    from line 2 of ../sass/styles.sass
</code></pre>

<p>required output</p>

<pre><code>select{
  text-align: center
}
.sample-class{
  text-align: center
}
input[type="text"]{
  text-align: center
}
input[type="button"]{
  text-align: center
}
</code></pre>