p><strong><code>first</code>:</strong>  The first element to be returned from the sequence.</p>

<p><strong><code>next</code>:</strong>  A closure that accepts the previous sequence element and
  returns the next element.
<strong>Returns:</strong> A sequence that starts with <code>first</code> and continues with every
  value returned by passing the previous element to <code>next</code>.</p>

    <h4>Declaration</h4>    
    <code class="language-swift">func sequence&lt;T&gt;(first: T, next: @escaping (T) -