elist/elist.py
def mapfo(ol,**kwargs):
    '''
        #mapfo            i不作为map_func参数,v不作为map_func参数
        #                 NOT take value as a param for map_func,NOT take index as a param for map_func
        #map_func         diff_func(*diff_args)
    '''
    diff_args_arr = kwargs['map_func_args_array']
    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 = diff_args_arr[i]
        ele = func(value,*args)
        rslt.append(ele)
    return(rslt)
def mapfo(ol,**kwargs):
    '''
        #mapfo            i不作为map_func参数,v不作为map_func参数
        #                 NOT take value as a param for map_func,NOT take index as a param for map_func
        #map_func         diff_func(*diff_args)
    '''
    diff_args_arr = kwargs['map_func_args_array']
    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 = diff_args_arr[i]
        ele = func(value,*args)
        rslt.append(ele)
    return(rslt)
def mapfo ( ol , * * kwargs ) : diff_args_arr = kwargs [ 'map_func_args_array' ] 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 = diff_args_arr [ i ] ele = func ( value , * args ) rslt . append ( ele ) return ( rslt )
#mapfo            i不作为map_func参数,v不作为map_func参数
        #                 NOT take value as a param for map_func,NOT take index as a param for map_func
        #map_func         diff_func(*diff_args)
#mapfo i不作为map_func参数 v不作为map_func参数 # NOT take value as a param for map_func NOT take index as a param for map_func #map_func diff_func ( * diff_args )