Skip to content
Permalink
Browse files
Introduce index example in array and map functions
  • Loading branch information
DelazJ authored and nyalldawson committed Nov 4, 2021
1 parent ab42fbb commit 02b68ae3617beab3086c2fcc04bc1ac2c79ec073
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 02b68ae

Please sign in to comment.