> On 29 Jun 2015, at 14:23, Henrik Johansen <henrik.s.johan...@veloxit.no> > wrote: > > >> On 29 Jun 2015, at 2:18 , abdelghani ALIDRA <alidran...@yahoo.fr> wrote: >> >> Hi guys, >> >> Is there any way to add an element to an empty array (must not use new: >> anElement)? >> >> Cheers > > It sounds like you want to use an OrderedCollection, not an Array. > Those will grow and shrink as needed when you use add:/remove: calls.
That being true, there are actually #copyWith: and #copyWithFirst: that will do the trick, although inefficiently. > Cheers, > Henry