list comprehension question

Charles Blair chas@REDACTED
Thu Jul 28 19:49:51 CEST 2005


in something like this:

[X || X <- lists:seq(1,25)]

is the result guaranteed to reflect the order of the generator, or
not? 

i'm working with a list of randomly generated results, and i want to
print them in the order in which they were generated--is lists:foreach
the way to go here? a list comprehension would be simpler to write and
nicer to look at.

thanks.






More information about the erlang-questions mailing list