On Nov 14, 2010, at 1:43 AM, epanda wrote: >>> let totallist=map(copy(lines), 'split(v:val,"\\s\\+")[-1]') > > > Ok with this I know have two list. > > price list = ['0.15', '0.1'] > quantity list = ['1', '2'] > > How can I have each items concatenated resulting into this list : > resultinglist = ['0.15*1', '0.1*2']
You can use a for loop. for i in range(0, len(price)-1) > > -- > You received this message from the "vim_use" maillist. > Do not top-post! Type your reply below the text you are replying to. > For more information, visit http://www.vim.org/maillist.php -- You received this message from the "vim_use" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php
