Skip to content

Commit

Permalink
Fix array_to_string description and add default value example
Browse files Browse the repository at this point in the history
  • Loading branch information
DelazJ committed Aug 24, 2018
1 parent 8e8f4a5 commit 399bbf1
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions resources/function_help/json/array_to_string
@@ -1,12 +1,13 @@
{
"name": "array_to_string",
"type": "function",
"description": "Concatenates array elements into a string separated by a delimiter using and optional string for empty values.",
"description": "Concatenates array elements into a string separated by a delimiter and using optional string for empty values.",
"arguments": [
{"arg":"array", "description":"the input array"},
{"arg":"delimiter","optional":true,"default":"','","description":"the string delimiter used to separate concatenated array elements"},
{"arg":"empty_value","optional":true,"default":"''","description":"the optional string to use as replacement for empty (zero length) matches"}],
"examples": [ { "expression":"array_to_string(array('1','2','3'),',')", "returns":"'1,2,3'"},
"examples": [ { "expression":"array_to_string(array('1','2','3'))", "returns":"'1,2,3'"},
{ "expression":"array_to_string(array(1,2,3),'-')", "returns":"'1-2-3'"},
{ "expression":"array_to_string(array('1','','3'),',','0')", "returns":"'1,0,3'"}
]
}

0 comments on commit 399bbf1

Please sign in to comment.