attributepattern function

Generate all possible attribute patterns