{
"id": "fn-array-tail",
"dataComponent": "array",
"heading": {
"title": "tail",
"badges": ["Array"]
},
"synopsis": "Returns a copy of the array without the first element. If the array has 0 or 1 elements, the result is empty.",
"codeBlocks": [
"extend(\"array\")\\n\\nsput( array:tail([1,2,3]) )\\n// => [2,3]\\n\\nsput( array:tail([]) )\\n// => []\\n\\n// If you pass a non-array or a single string, it raises an error."
],
"notes": [
"Accepts exactly one argument: an int[], str[], or bool[].",
"Returns a new array missing the first element. If the array is empty or length=1, it returns an empty array.",
"Does not currently support partial usage. Passing multiple arguments triggers an error."
]
}