On Fr, 21 Mär 2014, LCD 47 wrote: > On 21 March 2014, lith <[email protected]> wrote: > > > In other words, I'd expect this for example: > > > > > > :echo uniq([1, 2, 3, 3, 2, 2, 1]) > > > [1, 2, 3, 2, 1] > > > > I think some of us would be rather surprised if the result weren't > > [1,2,3]. > > Well, the more experienced among us would know that full (unsorted) > unique would be nice, but expensive. :)
While I'd like to have a unique() function in Vimscript, I am wondering, whether we could distribute some kind of script package, that defines more used functions. There could be a vim autoload package that provides vim#unique() and we wouldn't need to patch Vims C core, to add more functions later on. >From my experience, I don't expect the last bit of performance from Vimscript anyways so this might be okay. Of course this would only work with functions that could be written in Vimscript and don't require changes to the core. Best, Christian -- -- -- You received this message from the "vim_dev" 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 because you are subscribed to the Google Groups "vim_dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
