pike.hubbe.net

[Top]
previousadd_program_path() aggregate_mapping()next

Method aggregate()


Method aggregate

array aggregate(mixed ... elements)

Description

Construct an array with the arguments as indices.

This function could be written in Pike as: array aggregate(mixed ... elems) { return elems; }

Note

Arrays are dynamically allocated there is no need to declare them like int a[10]=allocate(10); (and it isn't possible either) like in C, just array(int) a=allocate(10); will do.

See also

sizeof, arrayp, allocate


Extracted from Pike v7.3 release 11 at 2001-11-03.