Am 25.05.2020 um 22:35 schrieb Bram Moolenaar:
Yegappan wrote:
To clear the contents of a list named "abc", we can use "unlet abc[:]".
It looks like a similar method for clearing the contents of a dictionary
is not available. We can set the dictionary variable to another e
Yegappan wrote:
> To clear the contents of a list named "abc", we can use "unlet abc[:]".
> It looks like a similar method for clearing the contents of a dictionary
> is not available. We can set the dictionary variable to another empty
> dictionary (but i
Hi,
On Sun, May 24, 2020 at 8:37 PM Pavol Juhas wrote:
> How about filter(d, “0”) ?
> To my understanding it clears the dictionary in place.
>
Yes. Good idea. This does clear all the items in the dict. But for
consistency
reasons, it will be useful to have unlet also support clearing all the i
How about filter(d, “0”) ?
To my understanding it clears the dictionary in place.
--
--
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
let abc[:]".
> > It looks like a similar method for clearing the contents of a dictionary
> > is not available. We can set the dictionary variable to another empty
> > dictionary (but it is not the same). Am I missing something?
> >
> > Thanks,
> > Yegappan
>
On Mon, May 25, 2020 at 2:15 AM Yegappan Lakshmanan wrote:
>
> Hi,
>
> To clear the contents of a list named "abc", we can use "unlet abc[:]".
> It looks like a similar method for clearing the contents of a dictionary
> is not available. We can set th
Hi,
To clear the contents of a list named "abc", we can use "unlet abc[:]".
It looks like a similar method for clearing the contents of a dictionary
is not available. We can set the dictionary variable to another empty
dictionary (but it is not the same). Am I missing somethin