Skip to content
Permalink
Browse files
Introduce index example in array and map functions
  • Loading branch information
DelazJ authored and github-actions committed Nov 4, 2021
1 parent effd0e1 commit b8ed3181d7b83e8aa35ffea35ee058ed7bbaa4c4
Showing with 4 additions and 2 deletions.
  1. +2 −1 resources/function_help/json/array
  2. +2 −1 resources/function_help/json/map
@@ -8,6 +8,7 @@
{"arg":"value1", "syntaxOnly": true},
{"arg":"value2", "syntaxOnly": true},
{"arg":"value", "descOnly": true, "description":"a value"}],
"examples": [ { "expression":"array(2,10)", "returns":"[ 2, 10 ]"}
"examples": [ { "expression":"array(2,10)", "returns":"[ 2, 10 ]"},
{ "expression":"array(2,10)[0]", "returns":"2"}
]
}
@@ -11,6 +11,7 @@
{"arg":"value2", "syntaxOnly": true},
{"arg":"key", "descOnly": true, "description":"a key (string)"},
{"arg":"value", "descOnly": true, "description":"a value"}],
"examples": [ { "expression":"map('1','one','2', 'two')", "returns":"{ '1': 'one', '2': 'two' }"}
"examples": [ { "expression":"map('1','one','2', 'two')", "returns":"{ '1': 'one', '2': 'two' }"},
{ "expression":"map('1','one','2', 'two')['1']", "returns":"'one'"}
]
}

0 comments on commit b8ed318

Please sign in to comment.