elist/elist.py
def mapfi(ol,map_func_args,**kwargs):
    '''
        #mapfi            共享相同的o,v不作为map_func参数
        #                 share common other_args,NOT take value as a param for map_func
        #map_func         diff_func(index,*common_args)
    '''
    diff_funcs_arr = kwargs['map_funcs']
    lngth = ol.__len__()
    rslt = []
    for i in range(0,lngth):
        index = i
        value = ol[i]
        func = diff_funcs_arr[i]
        args = map_func_args
        ele = func(index,*args)
        rslt.append(ele)
    return(rslt)
def mapfi(ol,map_func_args,**kwargs):
    '''
        #mapfi            共享相同的o,v不作为map_func参数
        #                 share common other_args,NOT take value as a param for map_func
        #map_func         diff_func(index,*common_args)
    '''
    diff_funcs_arr = kwargs['map_funcs']
    lngth = ol.__len__()
    rslt = []
    for i in range(0,lngth):
        index = i
        value = ol[i]
        func = diff_funcs_arr[i]
        args = map_func_args
        ele = func(index,*args)
        rslt.append(ele)
    return(rslt)
def mapfi ( ol , map_func_args , * * kwargs ) : diff_funcs_arr = kwargs [ 'map_funcs' ] lngth = ol . __len__ ( ) rslt = [ ] for i in range ( 0 , lngth ) : index = i value = ol [ i ] func = diff_funcs_arr [ i ] args = map_func_args ele = func ( index , * args ) rslt . append ( ele ) return ( rslt )
#mapfi            共享相同的o,v不作为map_func参数
        #                 share common other_args,NOT take value as a param for map_func
        #map_func         diff_func(index,*common_args)
#mapfi 共享相同的o v不作为map_func参数 # share common other_args NOT take value as a param for map_func #map_func diff_func ( index * common_args )