Skip to content

Commit

Permalink
Introduce index example in array and map functions
Browse files Browse the repository at this point in the history
  • Loading branch information
DelazJ authored and nyalldawson committed Nov 5, 2021
1 parent 1c29178 commit 26651fe
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion resources/function_help/json/array
Expand Up @@ -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"}
]
}
3 changes: 2 additions & 1 deletion resources/function_help/json/map
Expand Up @@ -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.