Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/djhworld/simple-computer
/ NewWord
Function
NewWord
components/storage.go:50–56 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
48
}
49
50
func
NewWord() *Word {
51
w := new(Word)
52
for
i, _ :=
range
w.bits {
53
w.bits[i] = *NewBit()
54
}
55
return
w
56
}
57
58
func
(e *Word) ConnectOutput(b Component) {
59
e.next = b
Callers
3
NewRegister
Function · 0.85
TestWord
Function · 0.85
TestWordWithSetOn
Function · 0.85
Calls
1
NewBit
Function · 0.85
Tested by
2
TestWord
Function · 0.68
TestWordWithSetOn
Function · 0.68