Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/djhworld/simple-computer
/ SetInputWire
Method
SetInputWire
components/components.go:183–185 ·
view source on GitHub ↗
(index int, value bool)
Source
from the content-addressed store, hash-verified
181
}
182
183
func
(z *IsZero) SetInputWire(index int, value bool) {
184
z.inputs[index].Update(value)
185
}
186
187
func
(z *IsZero) Update() {
188
for
i, _ :=
range
z.inputs {
Callers
1
TestIsZero
Function · 0.95
Calls
1
Update
Method · 0.65
Tested by
1
TestIsZero
Function · 0.76