MCPcopy Create free account
hub / github.com/ActiveState/code / recipe-440490.py

File recipe-440490.py

recipes/Python/440490_Booleoperations_beyond/recipe-440490.py:None–None  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1## example
2unique = lambda x: reduce(lambda y,z: (not (z in y) and y.append(z) ) or y, x, [])
3unique([3, 4, 5, 6, 5, 3, 7])

Callers

nothing calls this directly

Calls 2

uniqueFunction · 0.50
appendMethod · 0.45

Tested by

no test coverage detected