Skip to content
Permalink
Browse files

Fix array_to_string description and add default value example

  • Loading branch information
DelazJ committed Aug 24, 2018
1 parent 8e8f4a5 commit 399bbf1a00d9f36c136a6aec46f22978c10c5c24
Showing with 3 additions and 2 deletions.
  1. +3 −2 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.
You can’t perform that action at this time.