title: Which language understands 'variable a = 0 , 20, ..., 300'?
body: <p>Which language is smart so that it could understand <code>variable a = 0 , 20, ..., 300</code> ? so you could easily create arrays with it giving step start var last var (or, better no last variable (a la infinite array)) and not only for numbers (but even complex numbers and custom structures like <a href="http://en.wikipedia.org/wiki/Sedenion" rel="nofollow noreferrer">Sedenion's</a> which you would probably define on your own as a class or whatever...)</p>
  
  <p>Point is, find a language or algorithm usable in a language that can cach the law of how array of variables you've given (or params of that variables) change. And compose using that law a structure from which you would be able to get any variable(s).</p>
  
  <p>To everyone - examples you provide are very helpful for all beginners out there. And at the same time are the basic knowledge required to build such 'Smart Array' class. So thank you wary much for your enthusiastic help.</p>
  
  <p>As <a href="https://stackoverflow.com/questions/3037542/what-language-is-smart-so-that-it-could-understand-variable-a-0-20-30/3038116#3038116">JeffSahol noticed</a> </p>
  
  <blockquote>
    <p>all possible rules might include some
    that require evaluation of some/all
    existing members to generate the nth
    member.</p>
  </blockquote>
  
  <p>So it is a hard Question. And I think language that would do it 'Naturally' would be great to play\work with, hopefully not only for mathematicians.</p>