10 lines
185 B
Text
10 lines
185 B
Text
|
|
defmodule ConcurrentComputing do
|
||
|
|
def print(xs) do
|
||
|
|
Enum.map(xs, fn x ->
|
||
|
|
spawn(fn -> IO.puts x end)
|
||
|
|
end)
|
||
|
|
end
|
||
|
|
end
|
||
|
|
|
||
|
|
ConcurrentComputing.print ["Enjoy", "Rosetta", "Code"]
|