Created
October 27, 2011 15:02
-
-
Save ludofleury/1319804 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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