Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/compiler-explorer/compiler-explorer
/ unique
Function
unique
shared/common-utils.ts:36–38 ·
view source on GitHub ↗
(arr: V[])
Source
from the content-addressed store, hash-verified
34
}
35
36
export
function
unique<V>(arr: V[]): V[] {
37
return
[...
new
Set(arr)];
38
}
39
40
export
function
intersection<V>(a: V[], b: V[]): V[] {
41
const
B =
new
Set(b);
Callers
5
getCurrentCompilersIds
Method · 0.85
setupFilters
Method · 0.85
getSortedStaticLibraries
Method · 0.85
getAvailableLanguages
Method · 0.85
setCompilers
Method · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected