MCPcopy Index your code
hub / github.com/clips/pattern / unique

Function unique

pattern/text/tree.py:80–84  ·  view source on GitHub ↗

Returns a list copy in which each item occurs only once (in-order).

(iterable)

Source from the content-addressed store, hash-verified

78 return find(lambda x: x in iterable1, iterable2) is not None
79
80def unique(iterable):
81 """ Returns a list copy in which each item occurs only once (in-order).
82 """
83 seen = set()
84 return [x for x in iterable if x not in seen and not seen.add(x)]
85
86class Map(list):
87 """ A stored imap() on a list.

Callers 1

parse_xmlFunction · 0.70

Calls 1

addMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…