Coffeekraken.io 0.0.1

s-dash-to-map

Transform a dash notation value into a map Dash notation value is : -key1 value1 -key2 value2

Name Type Description Status Default
$dash { List } The dash list notation to transform required

Return { Map } The map generated

Example

    $dash : -hello world -coco universe
s-dash-to-map($dash);
// (
//     hello : world,
//     coco : universe
// )

Author : Olivier Bossel olivier.bossel@gmail.com