Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#40364 (comment) Refences #33302
- Loading branch information
Showing
5 changed files
with
105 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{ | ||
"name": "array_minority", | ||
"type": "function", | ||
"groups": ["Arrays"], | ||
"description": "Returns an array containing the minority values in an array. All values are minority exept the majority value if available.", | ||
"arguments": [ {"arg":"array","description":"an array"} ], | ||
"examples": [ | ||
{ "expression":"array_minority(array(0,1,42,42,43))", "returns":"[ 0, 1, 42, 43 ]"}, | ||
{ "expression":"array_minority(array(0,1,42,42,43,42))", "returns":"[ 0, 1, 42, 43 ]"}, | ||
{ "expression":"array_minority(array(0,1,42,42,43,42,42))", "returns":"[ 0, 1, 43 ]"} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{ | ||
"name": "array_mode", | ||
"type": "function", | ||
"groups": ["Arrays"], | ||
"description": "Returns an array containing the most common value in an array. The returned array may contain more than one value if multiple 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 ]"} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters