Task

Take a combined set of elements and apply a function to each element.




 
function map(%array,%arrayCount,%function)
{
	for(%i=0;%i<%arrayCount;%i++)
	{
		eval("%a = "@%array@"["@%i@"];");
		eval(""@%function@"("@%a@");");
	}
}
 