MCPcopy Create free account
hub / github.com/NetSys/bess / dedup

Function dedup

build.py:436–444  ·  view source on GitHub ↗

de-duplicate a list, retaining original order

(lst)

Source from the content-addressed store, hash-verified

434
435
436def dedup(lst):
437 "de-duplicate a list, retaining original order"
438 d = {}
439 result = []
440 for item in lst:
441 if item not in d:
442 d[item] = True
443 result.append(item)
444 return result
445
446
447def show_plugins():

Callers 1

mainFunction · 0.85

Calls 1

appendMethod · 0.80

Tested by

no test coverage detected