2016-09-12 10:30:05 +02:00
|
|
|
{
|
|
|
|
"name": "map",
|
|
|
|
"type": "function",
|
2020-07-02 01:46:48 +01:00
|
|
|
"groups": ["Maps"],
|
2016-09-12 10:30:05 +02:00
|
|
|
"description": "Returns a map containing all the keys and values passed as pair of parameters.",
|
|
|
|
"variableLenArguments": true,
|
2022-01-07 08:33:29 -05:00
|
|
|
"arguments": [{
|
|
|
|
"arg": "key1",
|
|
|
|
"syntaxOnly": true
|
|
|
|
}, {
|
|
|
|
"arg": "value1",
|
|
|
|
"syntaxOnly": true
|
|
|
|
}, {
|
|
|
|
"arg": "key2",
|
|
|
|
"syntaxOnly": true
|
|
|
|
}, {
|
|
|
|
"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' }"
|
|
|
|
}, {
|
|
|
|
"expression": "map('1','one','2', 'two')['1']",
|
|
|
|
"returns": "'one'"
|
|
|
|
}],
|
|
|
|
"tags": ["passed", "keys", "pair", "containing", "parameters", "map"]
|
2016-09-12 10:30:05 +02:00
|
|
|
}
|