takeIfNot

Extension of takeIf to exclude with a generic type parameter.