Skip to content
Permalink
Browse files

Apply suggestions from code review

Co-authored-by: Harrissou Sant-anna <delazj@gmail.com>
  • Loading branch information
domi4484 and DelazJ committed Feb 10, 2021
1 parent e854dc7 commit 68454316819b7dc6f27918274953e05e73735702
Showing with 4 additions and 4 deletions.
  1. +2 −2 resources/function_help/json/array_majority
  2. +2 −2 resources/function_help/json/array_minority
@@ -2,10 +2,10 @@
"name": "array_majority",
"type": "function",
"groups": ["Arrays"],
"description": "Return the most common values in an array.",
"description": "Returns the most common values in an array.",
"arguments": [
{"arg":"array","description":"an array"},
{"arg":"option='all'", "optional":true, "description":"a string specifying the return values handling. Valid options are:<br /><ul><li>all: Default, all most common values are returned in an array</li><li>first: Return the first of the most common values</li><li>median: Return the median of the most common values</li><li>real_majority: Return the value which occur more than half the size of the array</li></ul>"}
{"arg":"option='all'", "optional":true, "description":"a string specifying the return values handling. Valid options are:<br /><ul><li>all: Default, all most common values are returned in an array</li><li>first: Returns the first of the most common values</li><li>median: Returns the median of the most common values</li><li>real_majority: Returns the value which occurs more than half the size of the array</li></ul>"}
],
"examples": [
{ "expression":"array_majority(array(0,1,42,42,43), 'all')", "returns":"[ 42 ]"},
@@ -2,10 +2,10 @@
"name": "array_minority",
"type": "function",
"groups": ["Arrays"],
"description": "Return the less common values in an array.",
"description": "Returns the less common values in an array.",
"arguments": [
{"arg":"array","description":"an array"},
{"arg":"option='all'", "optional":true, "description":"a string specifying the return values handling. Valid options are:<br /><ul><li>all: Default, all less common values are returned in an array</li><li>first: Return the first of the less common values</li><li>median: Return the median of the less common values</li><li>real_minority: Return all values except the real majority if thre is one</li></ul>"}
{"arg":"option='all'", "optional":true, "description":"a string specifying the return values handling. Valid options are:<br /><ul><li>all: Default, all less common values are returned in an array</li><li>first: Returns the first of the less common values</li><li>median: Returns the median of the less common values</li><li>real_minority: Returns values which occur less than half the size of the array</li></ul>"}
],
"examples": [
{ "expression":"array_minority(array(0,42,42), 'all')", "returns":"[ 0 ]"},

0 comments on commit 6845431

Please sign in to comment.