NAME
	unique_array - Sort an array into arrays of unique groups

SYNOPSIS
	mixed *unique_array(int|mixed *array, string uniqfunc, void|mixed del)

DESCRIPTION
	Gives an array of arrays of nonunique objects. The function 'uniqfunc'
	is called on each of the objects in the array. The return values are
	used to group the objects into a number of arrays. For each object
	in such a subarray 'uniqfunc' returned the same value.

 	Then an array on the below form are returned:
   
	   ({
	   ({Same1:1, Same1:2, Same1:3, .... Same1:N }),
	   ({Same2:1, Same2:2, Same2:3, .... Same2:N }),
	   ({Same3:1, Same3:2, Same3:3, .... Same3:N }),
	   ....
	   ....
	   ({SameM:1, SameM:2, SameM:3, .... SameM:N }),
	   })
   
CAVEAT
	All elements of the array that are not objectpointers are ignored.

BUGS
	At times.

Help topics available:
_m_delete allocate atoi capitalize clear_bit
crypt ctime explode filter_array filter_mapping
implode intp itoa lower_case m_delete
m_indices m_sizeof m_values map_array map_mapping
mappingp member_array mkmapping objectp pointerp
replace set_bit sizeof sort_array sscanf
stringp strlen test_bit unique_array upper_case

[START|BACK ]




[ NannyMuds main page | FAQ | Contact us ]

You are guest number 150 since November 2019.
This file was last modified: June 2000.