{
  "id": "fn-array-fill",
  "dataComponent": "array",
  "heading": {
    "title": "fill",
    "badges": ["Array", "PARTIAL"]
  },
  "synopsis": "Returns a new array with the given value repeated count times. Partial and placeholder usage supported.",
  "codeBlocks": [
    "extend(\"array\")\n\nsput(array:fill(\"x\", 3))\n# => [\"x\",\"x\",\"x\"]\n\n# Partial usage:\nfillA = array:fill(\"A\")\nsput(fillA(2))\n# => [\"A\",\"A\"]\n\n# Placeholder usage:\np = array:fill(_, 4)\nsput(p(\"y\"))\n# => [\"y\",\"y\",\"y\",\"y\"]"
  ],
  "notes": [
    "First argument: value to repeat.",
    "Second argument: count (integer ≥ 0).",
    "Returns MixedArray of repeated value.",
    "Partial and placeholder usage supported."
  ]
}
