title: Python's range() analog in Common Lisp
body: <p><strong>How to create a list of consecutive numbers in Common Lisp?</strong></p>
  
  <p>In other words, what is the equivalent of Python's <code>range</code> function in Common Lisp?</p>
  
  <p>In Python <code>range(2, 10, 2)</code> returns <code>[2, 4, 6, 8]</code>, with first and last arguments being optional.  I couldn't find the idiomatic way to create a sequence of numbers, though Emacs Lisp has <code>number-sequence</code>.</p>
  
  <p>Range could be emulated <a href="https://stackoverflow.com/a/10872032/596361">using loop macro</a>, but i want to know the accepted way to generate a sequence of numbers with start and end points and step.</p>
  
  <p>Related: <a href="https://stackoverflow.com/questions/12909856/analog-of-pythons-range-in-scheme">Analog of Python&#39;s range in Scheme</a></p>