# Array merge in elixir

**URL:** <https://forum.elixirforum.com/t/array-merge-in-elixir/39892>\
**Category:** Coding Challenges\
**Tags:** elixir-ls\
**Created:** [May 21, 2021, 5:36am UTC](https://forum.elixirforum.com/t/array-merge-in-elixir/39892 "2021-05-21T05:36:36Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![NobbZ](https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/nobbz/32/27235_2.png) [@NobbZ](https://forum.elixirforum.com/u/NobbZ)\
**Post date:** [May 21, 2021, 5:53am UTC](https://forum.elixirforum.com/t/array-merge-in-elixir/39892/2 "2021-05-21T05:53:16Z")

</div>

1. There are no arrays in Elixir.

2. You can probably use [`Enum.zip_with/2`](https://hexdocs.pm/elixir/Enum.html#zip_with/2). The following should do if I understand you correctly (`a2` takes precedennce unless it is `nil`):

---

_[View the full topic](https://forum.elixirforum.com/t/array-merge-in-elixir/39892)._
