elist/elist.py
def mapvo(ol,map_func,*args,**kwargs):
    '''
        #mapvo    共享相同的f,i不作为map_func参数
        #         share common map_func,NOT take index as a param for map_func
        #         common_func(value,*priv_args)
    '''
    lngth = ol.__len__()
    args = list(args)
    if(args.__len__()==0):
        diff_args_arr = kwargs['map_func_args_array']
    else:
        diff_args_arr = args[0]
    rslt = []
    for i in range(0,lngth):
        index = i
        value = ol[i]
        func = map_func
        args = diff_args_arr[i]
        ele = func(value,*args)
        rslt.append(ele)
    return(rslt)
def mapvo(ol,map_func,*args,**kwargs):
    '''
        #mapvo    共享相同的f,i不作为map_func参数
        #         share common map_func,NOT take index as a param for map_func
        #         common_func(value,*priv_args)
    '''
    lngth = ol.__len__()
    args = list(args)
    if(args.__len__()==0):
        diff_args_arr = kwargs['map_func_args_array']
    else:
        diff_args_arr = args[0]
    rslt = []
    for i in range(0,lngth):
        index = i
        value = ol[i]
        func = map_func
        args = diff_args_arr[i]
        ele = func(value,*args)
        rslt.append(ele)
    return(rslt)
def mapvo ( ol , map_func , * args , * * kwargs ) : lngth = ol . __len__ ( ) args = list ( args ) if ( args . __len__ ( ) == 0 ) : diff_args_arr = kwargs [ 'map_func_args_array' ] else : diff_args_arr = args [ 0 ] rslt = [ ] for i in range ( 0 , lngth ) : index = i value = ol [ i ] func = map_func args = diff_args_arr [ i ] ele = func ( value , * args ) rslt . append ( ele ) return ( rslt )
#mapvo    共享相同的f,i不作为map_func参数
        #         share common map_func,NOT take index as a param for map_func
        #         common_func(value,*priv_args)
#mapvo 共享相同的f i不作为map_func参数 # share common map_func NOT take index as a param for map_func # common_func ( value * priv_args )