Pike v8.1 release 6

Method ADT.Table.table()->map()


Method map

object map(function(:void) f, array(int|string)|int|string columns, mixed ... args)

Description

This method calls the function f for all rows in the table. The value returned will replace the values in the columns given as argument to map. If the function returns an array, several columns will be replaced. Otherwise the first column will be replaced. The result will be returned as a new table object.