Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/statelyai/xstate
/ head
Function
head
examples/snake-react/src/snakeMachine.ts:56–58 ·
view source on GitHub ↗
(snake: Snake)
Source
from the content-addressed store, hash-verified
54
}
55
56
function
head(snake: Snake) {
57
return
snake[0];
58
}
59
60
function
body(snake: Snake) {
61
return
snake.slice(1);
Callers
3
getGamObjectAtPos
Function · 0.85
moveSnake
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…