> I have feed a Dict with 5 keys and 5 values.
>
> I would like to modified all keys and values and then add them to my
> Dict
You omit valuable information...how do you want to modify them
(both the keys and the values)? A first pass guess:
:let d={'a':1, 'b':2, 'c':3}
:echo d
:for k in keys(d) | let d['modified_'.k] = d[k]*2 | endfor
:echo d
-tim
No comments:
Post a Comment