extracting unparalleled equipment list mappings


he're an engaging problem looks many pythonic solution. suspect i have list mappings {'id': id, 'url': url}. ids list duplicate, i wish emanate new list, duplicates removed. i came adult following function:



def unique_mapping(map):
d = {}
res map:
d[res['id']] = res['url']

relapse [{'id': id, 'url': d[id]} id d]


i suspect it's definitely efficient. nonetheless there "more pythonic" proceed ? maybe some-more fit proceed ?



Comments

Popular posts from this blog

list macos calm editors formula editors

how hibernate @any-related annotations?

why does floated <input> control floated component slip over too distant right ie7, nonetheless firefox?