comparison runtime/doc/usr_41.txt @ 23588:510088f8c66f v8.2.2336

patch 8.2.2336: Vim9: not possible to extend dictionary with different type Commit: https://github.com/vim/vim/commit/b0e6b513648db7035046613431a4aa9d71ef4653 Author: Bram Moolenaar <Bram@vim.org> Date: Tue Jan 12 20:23:40 2021 +0100 patch 8.2.2336: Vim9: not possible to extend dictionary with different type Problem: Vim9: it is not possible to extend a dictionary with different item types. Solution: Add extendnew(). (closes #7666)
author Bram Moolenaar <Bram@vim.org>
date Tue, 12 Jan 2021 20:30:07 +0100
parents e2e2cc5d0856
children d3e064f54890
comparison
equal deleted inserted replaced
23587:901fb2bf09d1 23588:510088f8c66f
638 len() number of items in a List 638 len() number of items in a List
639 empty() check if List is empty 639 empty() check if List is empty
640 insert() insert an item somewhere in a List 640 insert() insert an item somewhere in a List
641 add() append an item to a List 641 add() append an item to a List
642 extend() append a List to a List 642 extend() append a List to a List
643 extendnew() make a new List and append items
643 remove() remove one or more items from a List 644 remove() remove one or more items from a List
644 copy() make a shallow copy of a List 645 copy() make a shallow copy of a List
645 deepcopy() make a full copy of a List 646 deepcopy() make a full copy of a List
646 filter() remove selected items from a List 647 filter() remove selected items from a List
647 map() change each List item 648 map() change each List item
667 len() number of entries in a Dictionary 668 len() number of entries in a Dictionary
668 has_key() check whether a key appears in a Dictionary 669 has_key() check whether a key appears in a Dictionary
669 empty() check if Dictionary is empty 670 empty() check if Dictionary is empty
670 remove() remove an entry from a Dictionary 671 remove() remove an entry from a Dictionary
671 extend() add entries from one Dictionary to another 672 extend() add entries from one Dictionary to another
673 extendnew() make a new Dictionary and append items
672 filter() remove selected entries from a Dictionary 674 filter() remove selected entries from a Dictionary
673 map() change each Dictionary entry 675 map() change each Dictionary entry
674 mapnew() make a new Dictionary with changed items 676 mapnew() make a new Dictionary with changed items
675 keys() get List of Dictionary keys 677 keys() get List of Dictionary keys
676 values() get List of Dictionary values 678 values() get List of Dictionary values