LevelQ


LevelQ[expr]

tests whether expr is a valid level specification. This function is primarily used in function patterns for specifying type of a parameter.

We will define MyMap with the “level” parameter as a synonym for the Builtin Map equivalent:

But notice that when we pass an invalid level specification, MyMap does not match and therefore does not pass the arguments through to Map. So we do not see the error message that Map would normally produce

IntersectingQ
MatrixQ