Recursive list comprehension

Joel Reymont joelr1@REDACTED
Fri Jan 13 12:16:09 CET 2006


I will rephrase it a bit. Obviously my original version was wrong as  
trans is never given a list. That would mean to me that trans would  
never terminate. Why does it return [] then?

Ignoring the position of the flash light makes no difference. This  
still works:

trans({st, r, []}) ->
     [{[], 0}];

Serves me well for not paying attention and not seeing the obvious!

	Joel

--
http://wagerlabs.com/








More information about the erlang-questions mailing list