> :let @_=string(map(copy(in_list), 'extend(out_dict, {v:val : 1})'))

I personally don't think it is a good idea to use map for iterating
over a list since it manipulates the list it is working on and returns
that transformed list.

Since vimscripts provides no high-order function to iterate over a
list without modifying it, what's wrong with a dull looking for-loop:

for k in list
 let dict[k] = 1
endfor


--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Reply via email to