vim9 autoloaded functions in expression register

2023-03-13 Fir de Conversatie Maxim Kim
Is there a way to use vim9 autoloaded function in expression register? The old way works: vim9script import autoload 'misc.vim' iab p! println!()=misc#Eatchar('\s') the dotted call doesn't: vim9script import autoload 'misc.vim' iab p! println!()=misc.Eatchar('\s') E121: Undefined variable: m

collection->foreach(func)

2023-03-13 Fir de Conversatie Ernie Rael
I sometimes want "collection->foreach((_, v) => ...v...)", a simple one liner, no return or return ignored. I know it's not a performance winner, or I'd want it more. After a quick look at the code, it looks like simply introducing another filtermap_T, FILTERMAP_FOREACH, and there's not much codi