def split(ol,value,**kwargs):
if('<STR_LIT>' in kwargs):<EOL><INDENT>whiches = kwargs['<STR_LIT>']    <EOL><DEDENT>else:<EOL><INDENT>whiches = None<EOL><DEDENT>indexes =  indexes_all(ol,value)<EOL>if(whiches == None):<EOL><INDENT>pass<EOL><DEDENT>else:<EOL><INDENT>indexes = select_indexes(indexes,whiches)<EOL><DEDENT>rslt = []<EOL>rslt.append(ol[:indexes[<NUM_LIT:0>]])<EOL>si = indexes[<NUM_LIT:0>]+<NUM_LIT:1><EOL>for i in range(<NUM_LIT:1>,indexes.__len__()):<EOL><INDENT>ei = indexes[i]<EOL>ele = ol[si:ei]<EOL>rslt.append(ele)<EOL>si = ei + <NUM_LIT:1><EOL><DEDENT>ele = ol[si:ol.__len__()]<EOL>rslt.append(ele)<EOL>return(rslt)<EOL>
ol = ['a',1,'a',2,'a',3,'a',4,'a']
split(ol,'a')
split(ol,'a',whiches=[0])
split(ol,'a',whiches=[1])
split(ol,'a',whiches=[2])
split(ol,'a',whiches=[0,2])
ol = [1,'a',2,'a',3,'a',4]
split(ol,'a')
split('x=bcdsef=g','=',whiches=[0])