# Anonymous functions weird behaviour with Array{Arrays}

**URL:** <https://discourse.julialang.org/t/anonymous-functions-weird-behaviour-with-array-arrays/652>\
**Category:** General Usage\
**Tags:** question\
**Created:** [November 30, 2016, 1:14pm UTC](https://discourse.julialang.org/t/anonymous-functions-weird-behaviour-with-array-arrays/652 "2016-11-30T13:14:11Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![martinholters](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/martinholters/32/3690_2.png) [@martinholters](https://discourse.julialang.org/u/martinholters)\
**Post date:** [December 2, 2016, 9:57am UTC](https://discourse.julialang.org/t/anonymous-functions-weird-behaviour-with-array-arrays/652/6 "2016-12-02T09:57:37Z")

</div>

Different sizes per se is not the problem, different number of dimensions is. Compare e.g.

```nohighlight
julia> a=[hcat([1]), [2 3]]
2-element Array{Array{Int64,2},1}:
 [1]  
 [2 3]

julia> a+a
2-element Array{Array{Int64,2},1}:
 [2]  
 [4 6]

```

---

_[View the full topic](https://discourse.julialang.org/t/anonymous-functions-weird-behaviour-with-array-arrays/652)._
