# Itertating a 2D matrix

**URL:** <https://forum.elixirforum.com/t/itertating-a-2d-matrix/50849>\
**Category:** Questions\
**Tags:** matrix, learning-elixir, list, help, 2d-arrays\
**Created:** [October 7, 2022, 8:56pm UTC](https://forum.elixirforum.com/t/itertating-a-2d-matrix/50849 "2022-10-07T20:56:38Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![Anshul-13J](https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/anshul-13j/32/28023_2.png) [@Anshul-13J](https://forum.elixirforum.com/u/Anshul-13J)\
**Post date:** [October 7, 2022, 9:33pm UTC](https://forum.elixirforum.com/t/itertating-a-2d-matrix/50849/7 "2022-10-07T21:33:24Z")

</div>

Tried this too:

```elixir
iex(14)> Enum.each(list1, fn row ->                                
...(14)> final_list = row                                          
...(14)> |> Enum.reduce([], fn el,acc ->                           
...(14)> if el >= 10 and el <= 99 do [el|acc] else acc end         
...(14)> end
...(14)> )
...(14)> end
...(14)> )

```

Still getting the same error 😢

---

_[View the full topic](https://forum.elixirforum.com/t/itertating-a-2d-matrix/50849)._
