Skip to content

Instantly share code, notes, and snippets.

@mbolt35
Created November 1, 2012 02:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mbolt35/3991255 to your computer and use it in GitHub Desktop.
Save mbolt35/3991255 to your computer and use it in GitHub Desktop.
var vec:Vector. = new <int>[ 1, 2, 3 ];
var arr:Array = function(v:Vector.<int>):Array {
var result:Array = [];
for (var i:int = 0; i < v.length; ++i) {
result[i] = v[i];
}
return result;
}(vec);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment