{
  "id": "fn-array-length",
  "dataComponent": "array",
  "heading": {
    "title": "length",
    "badges": ["Array"]
  },
  "synopsis": "Returns the length (count of elements or key-value pairs) in an array. Works with int[], str[], bool[], or keyed array.",
  "codeBlocks": [
    "extend(\"array\")\\n\\n// Regular integer array\\nsput( array:length([10,20,30]) )\\n// => 3\\n\\n// Keyed array\\nmyKeyed = [ name:\"Alice\", age:\"30\" ]\\nsput( array:length(myKeyed) )\\n// => 2"
  ],
  "notes": [
    "Accepts exactly one argument which must be an array or keyed array.",
    "Returns an integer: the size of that array or the number of entries in a keyed array.",
    "If the input is not recognized as an array or keyed array, it raises an error."
  ]
}
