def recursive_expand(items, expanded):
    for item in items:
        if isinstance(item, Pattern):
            recursive_expand(item.pattern_items(), expanded)
        expanded.append(item)
Recursively expand the list of items created by the looper.
dataset/ETHPy150Open nucleic/enaml/enaml/core/looper.py/recursive_expand