epanda wrote:
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
-- You received this message from the "vim_use" maillist. For more information, visit http://www.vim.org/maillist.php
