Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/OpenEndedGroup/Field2
/ growRingTop
Function
growRingTop
lib/web/kill.js:10–13 ·
view source on GitHub ↗
(str)
Source
from the content-addressed store, hash-verified
8
}
9
10
function
growRingTop(str) {
11
if
(!killRing.length)
return
addToRing(str);
12
killRing[killRing.length - 1] += str;
13
}
14
15
function
getFromRing(n) {
16
return
killRing[killRing.length - (n ? Math.min(n, 1) : 1)] ||
""
;
Callers
1
kill
Function · 0.70
Calls
1
addToRing
Function · 0.70
Tested by
no test coverage detected