Mercurial > vim
comparison runtime/doc/usr_41.txt @ 22844:36fc73078bce v8.2.1969
patch 8.2.1969: Vim9: map() may change the list or dict item type
Commit: https://github.com/vim/vim/commit/ea696852e7abcdebaf7f17a7f23dc90df1f5e2ed
Author: Bram Moolenaar <Bram@vim.org>
Date: Mon Nov 9 18:31:39 2020 +0100
patch 8.2.1969: Vim9: map() may change the list or dict item type
Problem: Vim9: map() may change the list or dict item type.
Solution: Add mapnew().
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Mon, 09 Nov 2020 18:45:04 +0100 |
parents | 0491b9cafd44 |
children | e7c125224b1a |
comparison
equal
deleted
inserted
replaced
22843:b80694c9bb40 | 22844:36fc73078bce |
---|---|
642 remove() remove one or more items from a List | 642 remove() remove one or more items from a List |
643 copy() make a shallow copy of a List | 643 copy() make a shallow copy of a List |
644 deepcopy() make a full copy of a List | 644 deepcopy() make a full copy of a List |
645 filter() remove selected items from a List | 645 filter() remove selected items from a List |
646 map() change each List item | 646 map() change each List item |
647 mapnew() make a new List with changed items | |
647 reduce() reduce a List to a value | 648 reduce() reduce a List to a value |
648 sort() sort a List | 649 sort() sort a List |
649 reverse() reverse the order of a List | 650 reverse() reverse the order of a List |
650 uniq() remove copies of repeated adjacent items | 651 uniq() remove copies of repeated adjacent items |
651 split() split a String into a List | 652 split() split a String into a List |
667 empty() check if Dictionary is empty | 668 empty() check if Dictionary is empty |
668 remove() remove an entry from a Dictionary | 669 remove() remove an entry from a Dictionary |
669 extend() add entries from one Dictionary to another | 670 extend() add entries from one Dictionary to another |
670 filter() remove selected entries from a Dictionary | 671 filter() remove selected entries from a Dictionary |
671 map() change each Dictionary entry | 672 map() change each Dictionary entry |
673 mapnew() make a new Dictionary with changed items | |
672 keys() get List of Dictionary keys | 674 keys() get List of Dictionary keys |
673 values() get List of Dictionary values | 675 values() get List of Dictionary values |
674 items() get List of Dictionary key-value pairs | 676 items() get List of Dictionary key-value pairs |
675 copy() make a shallow copy of a Dictionary | 677 copy() make a shallow copy of a Dictionary |
676 deepcopy() make a full copy of a Dictionary | 678 deepcopy() make a full copy of a Dictionary |