Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/djhworld/simple-computer
/ NewNOTer
Function
NewNOTer
components/components.go:215–223 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
213
}
214
215
func
NewNOTer() *NOTer {
216
n := new(NOTer)
217
218
for
i, _ :=
range
n.gates {
219
n.gates[i] = *circuit.NewNOTGate()
220
}
221
222
return
n
223
}
224
225
func
(n *NOTer) ConnectOutput(b Component) {
226
n.next = b
Callers
2
NewALU
Function · 0.92
TestNOTer
Function · 0.85
Calls
1
NewNOTGate
Function · 0.92
Tested by
1
TestNOTer
Function · 0.68