2020-12-29 08:16:52 +10:00

12 lines
490 B
Plaintext

{
"name": "array_mode",
"type": "function",
"groups": ["Arrays"],
"description": "Returns an array containing the mode value (most common value) of an array. The returned array may contain more than one value if more values occur equally often.",
"arguments": [ {"arg":"array","description":"an array"} ],
"examples": [
{ "expression":"array_mode(array(0,1,42,42,43))", "returns":"[ 42 ]"},
{ "expression":"array_mode(array(0,0,1,2,2,42))", "returns":"[ 0, 2 ]"}
]
}