MCPcopy
hub / github.com/TheAlgorithms/Go / Add

Method Add

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

Add: adds new element to the set

(item T)

Source from the content-addressed store, hash-verified

18type Set[T comparable] interface {
19 // Add: adds new element to the set
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)

Callers 15

FuzzRot13Function · 0.65
FuzzPolybiusFunction · 0.65
TestDSAFunction · 0.65
SignFunction · 0.65
FuzzTranspositionFunction · 0.65
FuzzCaesarFunction · 0.65
FuzzRsaFunction · 0.65
FuzzXORFunction · 0.65
ParallelMergeFunction · 0.65
FuzzBase64EncodeFunction · 0.65
UnionMethod · 0.65

Calls

no outgoing calls

Tested by 14

FuzzRot13Function · 0.52
FuzzPolybiusFunction · 0.52
TestDSAFunction · 0.52
FuzzTranspositionFunction · 0.52
FuzzCaesarFunction · 0.52
FuzzRsaFunction · 0.52
FuzzXORFunction · 0.52
FuzzBase64EncodeFunction · 0.52
ExampleSetFunction · 0.52
TestAddFunction · 0.52
fillListFunction · 0.52
TestAddFunction · 0.52