Message passing between processes in erlang?

298 views Asked by At

How can I send all elements of a list one by one, from the original process to another process through message passing in Erlang?

1

There are 1 answers

4
Steve Vinoski On

You could use a list comprehension. For example, assume Pid represents the target process, and List is the list whose elements you want to send to Pid:

[Pid ! Element || Element <- List]