Recursive list comprehension

Joel Reymont joelr1@REDACTED
Fri Jan 13 01:35:47 CET 2006


Folks,

I'm trying to build a search space for future analysis. Does this  
look valid to you?

transition(State) ->
     [{[Move] ++ Moves, Cost + Cost1} ||
	{State1, Move, Cost} <- move(State),
	{Moves, Cost1} <- transition(State1)].

	Thanks, Joel

--
http://wagerlabs.com/








More information about the erlang-questions mailing list