Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/djhworld/simple-computer
/ NewANDer
Function
NewANDer
components/components.go:251–259 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
249
}
250
251
func
NewANDer() *ANDer {
252
a := new(ANDer)
253
254
for
i, _ :=
range
a.gates {
255
a.gates[i] = *circuit.NewANDGate()
256
}
257
258
return
a
259
}
260
261
func
(a *ANDer) ConnectOutput(b Component) {
262
a.next = b
Callers
2
NewALU
Function · 0.92
TestANDer
Function · 0.85
Calls
1
NewANDGate
Function · 0.92
Tested by
1
TestANDer
Function · 0.68