Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/djhworld/simple-computer
/ SetInputWire
Method
SetInputWire
components/components.go:233–235 ·
view source on GitHub ↗
(index int, value bool)
Source
from the content-addressed store, hash-verified
231
}
232
233
func
(n *NOTer) SetInputWire(index int, value bool) {
234
n.inputs[index].Update(value)
235
}
236
237
func
(n *NOTer) Update() {
238
for
i, _ :=
range
n.gates {
Callers
1
TestNOTer
Function · 0.95
Calls
1
Update
Method · 0.65
Tested by
1
TestNOTer
Function · 0.76