The moral of this story is to be careful in how you use patterns when defining an anonymous function: make sure your patterns cant fail! 1 comment Another thing to notice about the isInAny and isInAny2 functions we showed above is that the first version, using a helper function that has a name, is a little easier to read than the version that plops an anonymous function into the middle.