MCPcopy Index your code
hub / github.com/nodejs/node / union

Function union

deps/v8/PRESUBMIT.py:201–203  ·  view source on GitHub ↗

Ensure no duplicates

(list_of_lists)

Source from the content-addressed store, hash-verified

199 return os.path.isfile(p) and os.path.basename(p) == 'DEPS'
200
201 def union(list_of_lists):
202 """Ensure no duplicates"""
203 return set(sum(list_of_lists, []))
204
205 def _CollectImpactedFiles(deps_file):
206 # TODO(liviurau): Do not walk paths twice. Then we have no duplicates.

Callers 1

Calls 2

setFunction · 0.50
sumFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…