Re: The following behavior of into function is a bug or the intended result?

2015-08-09 Thread Justin Smith
PersistentArrayMap is automatically promoted to PersistentHashMap when it reaches a specific size. This is done for performance reasons. Neither collection is considered ordered, and you should use a different datatype if you want ordered data. On Sunday, August 9, 2015 at 6:31:20 PM UTC-7, Phi

The following behavior of into function is a bug or the intended result?

2015-08-09 Thread Young Kim
This works well as expected. The order of input elements is maintained. (into (array-map) [[1 :a] [2 :b] [3 :c] [4 :d] [5 :e] [6 :f] [7 :g] [8 :h]]) ; => {1 :a, 2 :b, 3 :c, 4 :d, 5 :e, 6 :f, 7 :g, 8 :h} However, as soon as the number of the input elements exceeds 9, the order is not maintained a