title: How to generate integer ranges in Erlang?
body: <p>From the other languages I program in, I'm used to having ranges. In Python, if I want all numbers one up to 100, I write <code>range(1, 101)</code>. Similarly, in Haskell I'd write <code>[1..100]</code> and in Scala I'd write <code>1 to 100</code>.</p>
  
  <p>I can't find something similar in Erlang, either in the syntax or the library. I know that this would be fairly simple to implement myself, but I wanted to make sure it doesn't exist elsewhere first (particularly since a standard library or language implementation would be loads more efficient).</p>
  
  <p>Is there a way to do ranges either in the Erlang language or standard library? Or is there some idiom that I'm missing? I just want to know if I should implement it myself.</p>
  
  <p>I'm also open to the possibility that I shouldn't want to use a range in Erlang (I wouldn't want to be coding Python or Haskell in Erlang). Also, if I do need to implement this myself, if you have any good suggestions for improving performance, I'd love to hear them :)</p>