Skip to content
Permalink
Browse files
Introduce index example in array and map functions
  • Loading branch information
DelazJ authored and nyalldawson committed Nov 5, 2021
1 parent 1c29178 commit 26651fe00f8a08af683f60451eee4347467655e6
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 26651fe

Please sign in to comment.