Going to the second yield~%&quot;)
             (snakes:yield 2))

POFTHEDAY&gt; (simple)
#&lt;SNAKES:BASIC-GENERATOR {1008454D4B}&gt;

POFTHEDAY&gt; (funcall *)
LOG: Going to the second yield
1

POFTHEDAY&gt; (funcall **)
2

POFTHEDAY&gt; (funcall ***)
SNAKES:GENERATOR-STOP</code></pre><p>Here is the more interesting example of the generator which produces an infinite sequence of Fibonacci numbers:</p>
<pre><code class='lisp'>POFTHEDAY&gt; (snakes:defgenerator fib ()
             (loop with a = 0
         