Internal function for select_types to check if a glob pattern is indexed by index_types.

is_indexed(pattern)

Arguments

x

a glob pattern to be tested