[erlang-questions] List to proplist?

Richard O'Keefe ok@REDACTED
Thu Oct 30 22:21:09 CET 2008


On 31 Oct 2008, at 1:26 am, Andras Georgy Bekes wrote:
> Please note that I proposed an extension for list comprehensions that
> does the job of unfold/2 and more.

Between [E(X) || X (<-) F]
and [E(X) || X <- unfold(S, F')]
there is very little difference,
*provided* the compiler knows about unfold and treats it specially.

I've been thinking that we wouldn't really need
syntax for iterating over the elements of a tuple
if the compiler knew how to handle
[E(X) || X <- tuple_to_list(T)].
It's a little more long-winded than
[E(X) || X <-: T]
but a lot more obvious.




More information about the erlang-questions mailing list