June 29, 2015
10:23 p.m.
On 29 Jun 2015, at 14:23, Henrik Johansen <henrik.s.johansen@veloxit.no> wrote:
On 29 Jun 2015, at 2:18 , abdelghani ALIDRA <alidrandco@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