Created
November 19, 2011 17:41
-
-
Save devboy/1379110 to your computer and use it in GitHub Desktop.
Avoiding Dynamic types in haXe
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 characters
static inline function array_delete_if<T>( array: Array<T>, processor: T -> Bool ):Array<T> | |
{ | |
for ( item in array ) | |
if ( processor(item) ) | |
array.remove( item ); | |
return array; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment