If I have an array a:
a[a.length] returns nil. Good.a[a.length, x] returns []. Good.
Look to your friendly Lispy languages for the answer. The philosophy you're looking for began with languages whose specialty was LISt Processing. For instance, here's one way of creating lists in Haskell:
1:[] => [1]
1:2:3:[] => [1,2,3]
This is called cons-ing, for 'constructing' a list. If the idea hasn't clicked yet, consider this: an array is created by adding elements to an empty list, not to 'nil'.