Friday, January 15, 2021

vim9script: dump file content to list of list question !

Hi,

I got this kind of classical logfile :

2021/01/14 07:42:22.588 Information Foo dbg 
2021/01/14 07:42:22.588 Information Bar dbg 
2021/01/14 07:42:22.588  Information    Foobar dbg 
2021/01/14 07:42:22.588  Information    Barbar dbg 
..
.

and would like to add all lines' informations split by space into dict or array in vim9script.
['2021/01/14', '07:42:22.588', 'Information  Foo dbg   ']

trying map(getline(1, '$'), ' v:val->split() ') it returns list<list<string>> but impossible to declare var foo: list<list<string>>

How can I fix it ?

Best Wishes 2021
NiVa

--
--
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 because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/051f67c9-a061-46a7-9c3b-794b563ea565n%40googlegroups.com.

No comments: