{
  "id": "fn-math-multiply",
  "dataComponent": "math",
  "heading": {
    "title": "multiply",
    "badges": [
      "Math",
      "PARTIAL"
    ]
  },
  "synopsis": "Multiplies one number (or array of numbers) by another, supporting partial usage and underscore placeholders.",
  "codeBlocks": [
    "extend(\"math\")\\n\\n# Direct usage\\nsput( math:multiply(6, 7) )\\n# => 42\\n\\n# Partial usage => provide only the first argument\\nmul10 = math:multiply(10)\\nsput( mul10(5) )\\n# => 50\\n\\n# Underscore placeholder => skip the first argument\\nmul3 = math:multiply(_, 3)\\nsput( mul3(11) )\\n# => 33\\n\\n# If either argument is an array, it performs element-wise multiplication\\nsput( math:multiply(5, [2,4,6]) )\\n# => [10, 20, 30]\\nsput( math:multiply([3,3,3], 2) )\\n# => [6, 6, 6]"
  ],
  "notes": [
    "If both arguments are single integers, it returns their product.",
    "If one argument is an integer array, it returns an integer array of element-wise products.",
    "You can partially apply `multiply` by providing only one argument, returning a function waiting for the other argument.",
    "Use the underscore placeholder `_` if you need to skip the first parameter while providing the second (or vice versa)."
  ]
}

