Return to Snippet

Revision: 35405
at November 7, 2010 11:57 by jaredyeo


Initial Code
function fDifference(vLarger : Array, vSmaller : Array) : Array
{
	var i : int;
	var vList : Array = new Array();
	
	for (i = 0; i < vLarger.length; i++)
		if (vSmaller.indexOf(vLarger[i]) == -1)
			vList.push(vLarger[i])
	return vList;
}

Initial URL
http://simplistika.com

Initial Description
vLarger - Larger array
vSmaller - Smaller array

Initial Title
AS3 Array Difference

Initial Tags
array

Initial Language
ActionScript 3