MCPcopy Create free account
hub / github.com/emscripten-core/emsdk / unique_items

Function unique_items

emsdk.py:2672–2675  ·  view source on GitHub ↗
(seq)

Source from the content-addressed store, hash-verified

2670
2671# http://stackoverflow.com/questions/480214/how-do-you-remove-duplicates-from-a-list-in-python-whilst-preserving-order
2672def unique_items(seq):
2673 seen = set()
2674 seen_add = seen.add
2675 return [x for x in seq if x not in seen and not seen_add(x)]
2676
2677
2678# Tests if a path is contained in the given list, but with separators normalized.

Callers 1

adjusted_pathFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected