Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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