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_while",
  "dataComponent": "array",
  "heading": {
    "title": "drop_while",
    "badges": ["Array", "PARTIAL"]
  },
  "synopsis": "Removes elements from the start of the array while the predicate returns true. Partial and placeholder usage supported.",
  "codeBlocks": [
    "extend(\"array\")\n\narr = [1,2,3,4,1,2,3]\nsput(array:drop_while(x => x < 3, arr))\n# => [3,4,1,2,3]\n\n# Partial usage:\ndw = array:drop_while(x => x < 4)\nsput(dw(arr))\n# => [4,1,2,3]\n\n# Placeholder usage:\np = array:drop_while(_, arr)\nsput(p(x => x != 3))\n# => [3,4,1,2,3]"
  ],
  "notes": [
    "First argument: predicate function.",
    "Second argument: array.",
    "Skips elements while predicate returns true; returns remainder.",
    "Partial and placeholder usage supported."
  ]
}