Skip to content

Instantly share code, notes, and snippets.

@ludofleury
Created October 27, 2011 15:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save ludofleury/1319804 to your computer and use it in GitHub Desktop.
Save ludofleury/1319804 to your computer and use it in GitHub Desktop.
var foo:Function = function(remove:String) {
var remove:String = remove;
return function (item:*, index:int, array:Array):Boolean {
return (item != remove);
};
}
var trueMan = foo('water');
var liquor:Array = new Array('water','whisky', 'beer');
liquor.filter(trueMan);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment