map_array

lpc4/lib/doc/efun/map_array · 671 B

From the archive lpc4.05.14.tar.gz

Download the archive   « Back to the archive contents

NAME
	map_array - map a function over an array

SYNTAX
	mixed *map_array(mixed *arr,function fun,mixed arg, ...);
	mixed *map_array(object *arr,string fun,mixed arg, ...);
	mixed *map_array(function *arr,-1,mixed arg, ...);

DESCRIPTION
	First syntax:
	Map array returns an array holding the items of arr mapped thrugh
	the function fun. ie. arr[x]=fun(arr[x],arg, ...) for all x.

	Second syntax:
	Map array calls function fun in all objects in the array arr.
	ie. arr[x]=arr[x]->fun(arg, ...);

	Third syntax:
	Map array calls the functions in the array arr:
	arr[x]=arr[x]->fun(arg, ...);

SEE ALSO
	sum_arrays, map_mapping, filter_array, filter_mapping, sum_mappings

Site Stats

Snippets: 1791
Codebases: 571