# 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()