Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/covscript/covscript
/ front
Function
front
sources/instance/type_ext.cpp:205–210 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
203
}
204
205
var front(const array &arr)
206
{
207
if (arr.empty())
208
throw lang_error(
"Call front() on empty array."
);
209
return arr.front();
210
}
211
212
var back(const array &arr)
213
{
Callers
1
pop_front
Function · 0.85
Calls
2
lang_error
Class · 0.85
empty
Method · 0.45
Tested by
no test coverage detected