Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
2
unique =
lambda
x: reduce(
lambda
y,z: (not (z in y) and y.append(z) ) or y, x, [])
3
unique([3, 4, 5, 6, 5, 3, 7])
Callers
nothing calls this directly
Calls
2
unique
Function · 0.50
append
Method · 0.45
Tested by
no test coverage detected