Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/egonelbre/exp
/ NewEmptyTree
Function
NewEmptyTree
coder/arith/models.go:119–121 ·
view source on GitHub ↗
(nbits uint)
Source
from the content-addressed store, hash-verified
117
}
118
119
func
NewEmptyTree(nbits uint) Tree {
120
return
make(Tree, 1<<nbits-1)
121
}
122
123
func
(tree Tree) Encode(enc *Encoder, value uint) {
124
if
value > tree.syms() {
Callers
1
TestTreeModel
Function · 0.85
Calls
no outgoing calls
Tested by
1
TestTreeModel
Function · 0.68