Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
with
25 additions
and 0 deletions.
@@ -0,0 +1,11 @@ | ||
{ | ||
"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 ]"} | ||
] | ||
} |