Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何通过 Erlang 中的消息传递将列表的所有元素从原始进程一个一个发送到另一个进程?
您可以使用列表理解。例如,假设Pid代表目标进程,并且List是您要将其元素发送到的列表Pid:
Pid
List
[Pid ! Element || Element <- List]