Skip to content

Commit

Permalink
Remove unneccesary indirection
Browse files Browse the repository at this point in the history
  • Loading branch information
Qqwy committed Sep 6, 2021
1 parent b6edc97 commit d0d16a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/arrays.ex
Original file line number Diff line number Diff line change
Expand Up @@ -603,7 +603,7 @@ contents = quote [location: :keep] do
case Enum.split(enumerable_of_enumerables, 1) do
{[], []} -> Arrays.new()
{[first], rest} ->
Enum.reduce(rest, first, &Arrays.concat/2)
Enum.reduce(rest, first, &Enum.into/2)
end
end

Expand Down

0 comments on commit d0d16a3

Please sign in to comment.