mumu 0.11.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
{
  "id": "fn-array-includes",
  "dataComponent": "array",
  "heading": {
    "title": "includes",
    "badges": ["Array", "PARTIAL"]
  },
  "synopsis": "Checks if an array contains a given value. Returns true or false. Supports partial usage and placeholders.",
  "codeBlocks": [
    "extend(\"array\")\n\narray:includes(42, [1,2,3,42])\n// => true\n\n# Partial usage:\nincludes42 = array:includes(42)\nincludes42([0,42,99])\n// => true\n\n# Placeholder usage:\narrPartial = array:includes(_, [3,7,8])\narrPartial(7)\n// => true"
  ],
  "notes": [
    "Takes up to two arguments: (item, array).",
    "Returns Bool(true) if found, Bool(false) if not.",
    "Supports partial usage for either argument."
  ]
}