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