elm-lang/Elm — pull request #737 by Xashili (2014-08-09 00:12:39+00:00)
Title: Fix Array.append

Also fixes #647 … and sorry for the long delay! The bug was that when using arrays with different heights, the lower one would get raised. When merged, they would become even higher, soon getting to heights of around 10, when (index >> (height * 5)) in getSlot started to flow over.

Now, different heights are handled native and when merging the highest nodes, append will first try to force them into one node instead of always giving them a new parent.