search_array

lpc4/lib/doc/efun/search_array · 534 B

From the archive lpc4.05.14.tar.gz

Download the archive   « Back to the archive contents

NAME
	search_array - search a for something in an array

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

DESCRIPTION
	search_array works like map_array, only it returns the index of the
	first call that returned true instead or returning an array of the
	returned values. If no call returns true, -1 is returned.

SEE ALSO
	sum_arrays, map_mapping, filter_array, filter_mapping, sum_mappings
	member_array

Site Stats

Snippets: 1791
Codebases: 571