MCPcopy Index your code
hub / github.com/TheAlgorithms/Go / Delete

Method Delete

structure/set/set.go:22–22  ·  view source on GitHub ↗

Delete: deletes the passed element from the set if present

(item T)

Source from the content-addressed store, hash-verified

20 Add(item T)
21 // Delete: deletes the passed element from the set if present
22 Delete(item T)
23 // Len: gives the length of the set (total no. of elements in set)
24 Len() int
25 // GetItems: gives the array( []T ) of elements of the set.

Callers 3

TestDeleteFunction · 0.65
JosephusProblemFunction · 0.65
TestDeleteFunction · 0.65

Calls

no outgoing calls

Tested by 2

TestDeleteFunction · 0.52
TestDeleteFunction · 0.52