~w(one two three) |> Enum.map(&"#{&1}!!")
=> ["one!!", "two!!", "three!!"]
vs
$array = array("one", "two", "three");
return array_map(function($e) {
return $e . "!!";
}, $array);
~w(one two three) |> Enum.map(&"#{&1}!!")
=> ["one!!", "two!!", "three!!"]
vs
$array = array("one", "two", "three");
return array_map(function($e) {
return $e . "!!";
}, $array);