Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/statelyai/xstate
/ body
Function
body
examples/snake-react/src/snakeMachine.ts:60–62 ·
view source on GitHub ↗
(snake: Snake)
Source
from the content-addressed store, hash-verified
58
}
59
60
function
body(snake: Snake) {
61
return
snake.slice(1);
62
}
63
64
function
newHead(oldHead: BodyPart, dir: Dir): BodyPart {
65
switch (dir) {
Callers
2
getGamObjectAtPos
Function · 0.85
snakeMachine.ts
File · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected
Used in the wild
real call sites across dependent graphs
searching dependent graphs…