{
  "id": "fn-math-pow",
  "dataComponent": "math",
  "heading": {
    "title": "pow",
    "badges": [
      "Math",
      "PARTIAL"
    ]
  },
  "synopsis": "Raises a base to an exponent. Supports partial usage, placeholders, and negative exponents are disallowed by default.",
  "codeBlocks": [
    "extend(\"math\")\n\n# Normal usage\nsput( math:pow(2, 3) ) // prints 8\n\n# Partial usage => supply just the base\nsquare = math:pow(2)\nsput( square(5) ) // prints 32 (2^5 = 32)\n\n# Placeholder usage => skip the base, fix exponent=3\nraise3 = math:pow(_, 3)\n\nsput( raise3(2) ) // prints 8"
  ],
  "notes": [
    "If called with two integers, pow(base, exponent) returns base^exponent, failing on negative exponents.",
    "If only one argument is given, returns a partial function that expects the missing argument.",
    "Placeholders allow skipping the first parameter instead of the last.",
    "Because it is registered as 'math:pow', you must call it as math:pow(...) unless you rebind it."
  ]
}
