{
"id": "fn-array-last",
"dataComponent": "array",
"heading": {
"title": "last",
"badges": ["Array"]
},
"synopsis": "Returns the last element of an array. Raises error if empty.",
"codeBlocks": [
"extend(\"array\")\n\nsput( array:last([10,20,30]) )\n# => 30"
],
"notes": [
"One argument: int[], float[], bool[], or str[].",
"Returns the last element.",
"Raises error for empty arrays."
]
}