 # iex(21)> WorkingWithMultipleProcesses07.pmap 1..40, &(&1 * &1)
 # [1, 4, 9, 16, 25, 36, 49, 64, 81, 100, 121, 144, 169, 196, 225, 256, 289, 324,
 #  361, 400, 441, 484, 529, 576, 625, 676, 729, 784, 841, 900, 961, 1024, 1089,
-#  1156, 1225, 1296, 1369, 1444, 1521, 1600]+#  1156, 1225, 1296, 1369, 1444, 1521, 1600]

defmodule WorkingWithMultipleProcesses07 do
  import :timer, only: [ sleep: 1 ]

  def pmap(collection, fun) do
    me = self()
    collection

    end)
  end

  # 完了した順で二回目のEnum.mapが処理される
  def pmap_unsort(collection, fun) do
    me = self()
    collection
