title: How can I create a function with a variable number of arguments?
body: <p>How can I create a function with a variable number of arguments in Rust?</p>
  
  <p>Like this Java code:</p>
  
  <pre><code>void foo(String... args) {
      for (String arg : args) {
          System.out.println(arg);
      }
  }
  </code></pre>