Revisions
-
Palleas revised this gist
Oct 27, 2011 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -5,7 +5,7 @@ var foo:Function = function(remove:String) : Function { }; } var trueMan : Function = foo('water'); var liquor : Array = ['water','whisky', 'beer']; -
Palleas revised this gist
Oct 27, 2011 . 1 changed file with 6 additions and 7 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -1,13 +1,12 @@ var foo:Function = function(remove:String) : Function { var remove : String = remove; return function (item:*, index:int, array:Array) : Boolean { return (item != remove); }; } var trueMan : String = foo('water'); var liquor : Array = ['water','whisky', 'beer']; liquor.filter(trueMan); -
ludofleury created this gist
Oct 27, 2011 .There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,13 @@ 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);