title: Can generators be recursive?
body: <p>I naively tried to create a recursive generator. Didn't work. This is what I did: </p>
  
  <pre><code>def recursive_generator(lis):
      yield lis[0]
      recursive_generator(lis[1:])
  
  for k in recursive_generator([6,3,9,1]):
      print(k)
  </code></pre>
  
  <p>All I got was the first item <code>6</code>. </p>
  
  <p>Is there a way to make such code work? Essentially transferring the <code>yield</code> command to the level above in a recursion scheme?</p>