any_of and none_of

Implement any_of and none_of.