title: Simulating range(L,N) in erlang
body: <p>Early in the morning playing with Erlang I got a curious result:</p>
  
  <pre><code>   -module(bucle01).
  
     -compile(export_all).
  
     for(N) when N &gt;=0 -&gt;
  
                  lists:seq(1,N).
  
  
     for(L,N) when L =&lt; N -&gt;
  
                  lists:seq(L,N);
  
     for(L,N) when L &gt; N -&gt;
  
                  lists:reverse(for(N,L)).
  </code></pre>
  
  <p>When I run the program I see this:</p>
  
  <pre><code>&gt; bucle01:for(1,10).
  
  [1,2,3,4,5,6,7,8,9,10]
  
  &gt; bucle01:for(10,1).
  
  [10,9,8,7,6,5,4,3,2,1]
  
  &gt;bucle01:for(7,10).
  
  [7,8,9,10]
  
  &gt;bucle01:for(8,10).
  
  "\b\t\n"                %% What's that !?!
  
  &gt;bucle01:for(10,8).
  
  "\n\t\b"               %% After all  it has some logic !
  </code></pre>
  
  <p>Any  "Kool-Aid" to "Don't drink too much" please ?</p>