Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/GongShichen/LuminaCode
/ pythonSliceStart
Function
pythonSliceStart
agent/compact.go:42–53 ·
view source on GitHub ↗
(length, start int)
Source
from the content-addressed store, hash-verified
40
}
41
42
func
pythonSliceStart(length, start int) int {
43
if
start < 0 {
44
start = length + start
45
}
46
if
start < 0 {
47
return
0
48
}
49
if
start > length {
50
return
length
51
}
52
return
start
53
}
Callers
1
TruncateResult
Function · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected