mumu 0.10.0

Lava Mumu is a language for those in the now and that know
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
{
  "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."
  ]
}