|   | 1 |  initial version  | 
If you want various levels in the list, you probably want the original as well. You could do
id = lambda a: a
ops=[id,R1,R2,R3,R4]
L=[v]
for i in range(10):
  L = [f(v) for v in L for f in ops]
which has the slight perk that it reuses some of the intermediate results.
|   | 2 |  No.2 Revision  | 
If you want various levels in the list, you probably want the original as well. You could do
id = lambda a: a
ops=[id,R1,R2,R3,R4]
ops=[R1,R2,R3,R4]
L=[v]
for i in range(10):
  L = += [f(v) for v in L for f in ops]
which has the slight perk that it reuses some of the intermediate results.
|   | 3 |  No.3 Revision  | 
If you want various levels in the list, you probably want the original as well. You could do
ops=[R1,R2,R3,R4]
L=[v]
T=[v]
L=[]
for i in range(10):
  L += T
  T = [f(v) for v in L T for f in ops]
 Copyright Sage, 2010. Some rights reserved under creative commons license. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.
 
                
                Copyright Sage, 2010. Some rights reserved under creative commons license. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.