Skip to content

Instantly share code, notes, and snippets.

@richardszalay
Created March 26, 2011 17:47
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 richardszalay/888474 to your computer and use it in GitHub Desktop.
Save richardszalay/888474 to your computer and use it in GitHub Desktop.
Basic raix.interactive example
var filteredAndMapped : IEnumerable = toEnumerable([1, 2, 3, 4, 5, 6, 7, 8, 9])
.filter(function(i:int):Boolean { return (i % 2) == 0); })
.map(function(i:int):String { return "It's value " + i; });
for each(var value : String in filteredAndMapped)
{
trace(value);
}
// Output:
// It's value 2
// It's value 4
// It's value 6
// It's value 8
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment