| Extracted from Pike v7.8 release 866 at 2018-02-09.

[Top]

# Method column()

Method column

  `array column(array data, mixed index)`

Description

  Extract a column from a two-dimensional array.

  This function is exactly equivalent to:

  map(data , lambda(mixed x,mixed y) { return x[y]; }, index )

Except of course it is a lot shorter and faster. That is, it indices every index in the array data on the value of the argument index and returns an array with the results.

See also

  rows()