# Check each element of the array vs. the supplied pattern.