</p>

<p>You can pass zero or more items to the <code>print(_:separator:terminator:to:)</code>
function. The textual representation for each item is the same as that
obtained by calling <code>String(item)</code>. The following example prints a closed
range of integers to a string:</p>

<pre><code class="language-swift">var range = &quot;My range: &quot;
print(1...5, to: &amp;range)
// range == &quot;My range: 1...5\n&quot;</code></pre>

<p>To print the items separated by something other than a space, pass a