Say I have the following objects.
d = ["foo1", "foo2", "foo3", "foo4"]
c = 1
a = ["foo1", 6]
I want to check to see if the object is a list of a certain type. If i want to check to see if d is a list and that list contains strings, how would i do that?
d should pass, but c and a should fail the check.
list? Should("foo", "bar", "baz")fail as well? Or even astr, e.g.,"foobar", which is technically iterable as well?