Challenge
Create a function takes in two 2-dimensional arrays of characters (or strings if the programming language does not have characters as a datatype) as inputs: a and b. If your language does not support these inputs, you may use any other standard one-byte variable.
Your task is to determine if b contains a. If this is so, return true. Otherwise, return false.
Sample Test Cases
a:
123
456
789
b:
123
456
789
should return true.
a:
code
golf
b:
thisis
code!!
golf!!
ohyeah
should return true.
a:
abcd
efgh
ijkl
b:
abcdef
ghijkl
mnopqr
should return false.
a:
abc
def
b:
1abc2
3def4
5ghi6
should return true
a:
ab
cd
b:
#ab##
##cd#
should return false
This is code-golf so least bytes wins.
a
isn't onb
's left edge and a falsey test case where each line ofa
appears in consecutive lines ofb
but with their left edges staggered? \$\endgroup\$