def factory_fixed_sequence(values):
def seq_generator():<EOL><INDENT>my_list = list(values)<EOL>i = <NUM_LIT:0><EOL>while(True):<EOL><INDENT>yield my_list[i]<EOL>if i == len(my_list):<EOL><INDENT>i = <NUM_LIT:0><EOL><DEDENT><DEDENT><DEDENT>return seq_generator<EOL>
Return a generator that runs through a list of values in order, looping after end