How to convert "Shell.Params()" to a ChaiScript "Map" object?

The ModScript docs for the Dictionary object say:

A class for supporting dictionary objects in scripts that are converted from SBM AppScript to SBM ModScript. A dictionary is a case sensitive key-value container.  In general, use ChaiScript's Map instead.

So the guidance, which seems reasonable, indicates that I need to convert Shell.Params() directly to a Map.  A Map constructor that did this would be nice.  No such beast in this zoo.  I think using algorithms and lambdas might be able to accomplish this easily, but I can't understand those at this point, and the examples of algorithms/lambdas are ..... limited.  I know the bigger hammer approach is a "for" loop but I'm really trying to drink the ChaiScript koolaid.  I've studied Don's Modscript series but get derailed by lambdas.

Is using algorithm + lambda the right approach for a "Shell.Params() - to - Map" converter??

Parents Reply Children
No Data