Skip to content

Instantly share code, notes, and snippets.

@devboy
Created November 19, 2011 17:41
Show Gist options
  • Save devboy/1379110 to your computer and use it in GitHub Desktop.
Save devboy/1379110 to your computer and use it in GitHub Desktop.
Avoiding Dynamic types in haXe
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