lists:seq/3 strange behaviour

Piotr Kaleta <>
Tue Jun 8 12:17:11 CEST 2010

What was the reason for lists:seq function to be implemented in a way 
that if you call:

lists:seq(2, 1, 10)

it works as expected returning an an empty list, while when beeing 
called like:

lists:seq(20, 1, 10)

it throws an exception?

More information about the erlang-questions mailing list