Currently if you pass in an array of associative arrays to ArrayList to store as its items, the representation of that data is inconsistent:
If you iterate over the list, the data is represented as ArrayData objects
Every other scenario, such as calling first() or last(), returns the original associative arrays
To Decide:
We have two options here, which do we want?
Any time associative arrays are given to an ArrayList (either through the constructor, or through methods like add(), push(), remove(), etc) they are immediately wrapped in ArrayData
ArrayList never wraps arrays in ArrayData - you get out what you put in
Currently if you pass in an array of associative arrays to
ArrayList
to store as its items, the representation of that data is inconsistent:ArrayData
objectsfirst()
orlast()
, returns the original associative arraysTo Decide:
ArrayList
(either through the constructor, or through methods likeadd()
,push()
,remove()
, etc) they are immediately wrapped inArrayData
ArrayList
never wraps arrays inArrayData
- you get out what you put in