Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/egonelbre/exp
/ increment
Function
increment
vector/generate/expr.go:47–54 ·
view source on GitHub ↗
(varname string, by Expr)
Source
from the content-addressed store, hash-verified
45
}
46
47
func
increment(varname string, by Expr) string {
48
bys := by.String()
49
switch
bys {
50
case
"1"
:
51
return
varname +
"++"
52
}
53
return
varname +
" += "
+ bys
54
}
Callers
2
Iterate
Method · 0.85
advanceIterators
Method · 0.85
Calls
1
String
Method · 0.65
Tested by
no test coverage detected