Smart pascal source code
var
a : array of Integer;
begin
a += 1;
a += [2, 3];
a.Add([4, 5]);
a += a;
WriteLn(a.Map(IntToStr).Join(','));
{ CONSOLE OUTPUT
1,2,3,4,5,1,2,3,4,5
}
function IntToStr(i) { return i.toString() }
Array.prototype.pusha = function (e) { this.push.apply(this, e); return this }
var a = [];
a.push(1);
a.push(2, 3);
a.push(4, 5);
a.pusha(a);
WriteLn((a.map(IntToStr)).join(","));