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-drop",
  "dataComponent": "array",
  "heading": {
    "title": "drop",
    "badges": ["Array", "PARTIAL"]
  },
  "synopsis": "Returns an array with the first N elements removed. Partial and placeholder usage supported.",
  "codeBlocks": [
    "extend(\"array\")\n\narr = [10,20,30,40]\nsput(array:drop(2, arr))\n# => [30,40]\n\n# Partial usage:\ndrop2 = array:drop(2)\nsput(drop2(arr))\n# => [30,40]\n\n# Placeholder usage:\np = array:drop(_, arr)\nsput(p(3))\n# => [40]"
  ],
  "notes": [
    "Takes two arguments: (count, array).",
    "Returns a new array with the first count elements removed.",
    "If count >= array length, returns empty array.",
    "Partial and placeholder usage supported."
  ]
}