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
{
  "id": "fn-array-length",
  "dataComponent": "array",
  "heading": {
    "title": "length",
    "badges": ["Array"]
  },
  "synopsis": "Returns the length (count of elements or key-value pairs) in an array. Works with int[], str[], bool[], or keyed array.",
  "codeBlocks": [
    "extend(\"array\")\\n\\n// Regular integer array\\nsput( array:length([10,20,30]) )\\n// => 3\\n\\n// Keyed array\\nmyKeyed = [ name:\"Alice\", age:\"30\" ]\\nsput( array:length(myKeyed) )\\n// => 2"
  ],
  "notes": [
    "Accepts exactly one argument which must be an array or keyed array.",
    "Returns an integer: the size of that array or the number of entries in a keyed array.",
    "If the input is not recognized as an array or keyed array, it raises an error."
  ]
}