MCPcopy Create free account
hub / github.com/FastLED/FastLED / remove_duplicates

Function remove_duplicates

ci/ci-compile-pio-ci-working.py:221–228  ·  view source on GitHub ↗
(items: list[str])

Source from the content-addressed store, hash-verified

219
220
221def remove_duplicates(items: list[str]) -> list[str]:
222 seen: set[str] = set()
223 out: list[str] = []
224 for item in items:
225 if item not in seen:
226 seen.add(item)
227 out.append(item)
228 return out
229
230
231def choose_board_interactively(boards: list[str]) -> list[str]:

Callers 1

Calls 3

setClass · 0.50
addMethod · 0.45
appendMethod · 0.45

Tested by

no test coverage detected