Mercurial > vim
comparison runtime/doc/usr_41.txt @ 23816:525c9e218c69
patch 8.2.2449: Vim9: flatten() always changes the list type
Commit: https://github.com/vim/vim/commit/3b690069730805a147d45d92eaca4dc838272d1d
Author: Bram Moolenaar <Bram@vim.org>
Date: Mon Feb 1 20:14:51 2021 +0100
patch 8.2.2449: Vim9: flatten() always changes the list type
Problem: Vim9: flatten() always changes the list type.
Solution: Disallow using flatten() and add flattennew().
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Mon, 01 Feb 2021 20:15:04 +0100 |
parents | 96206643bd9f |
children | a9ed31ab85c3 |
comparison
equal
deleted
inserted
replaced
23815:40a619efcc90 | 23816:525c9e218c69 |
---|---|
663 max() maximum value in a List | 663 max() maximum value in a List |
664 min() minimum value in a List | 664 min() minimum value in a List |
665 count() count number of times a value appears in a List | 665 count() count number of times a value appears in a List |
666 repeat() repeat a List multiple times | 666 repeat() repeat a List multiple times |
667 flatten() flatten a List | 667 flatten() flatten a List |
668 flattennew() flatten a copy of a List | |
668 | 669 |
669 Dictionary manipulation: *dict-functions* | 670 Dictionary manipulation: *dict-functions* |
670 get() get an entry without an error for a wrong key | 671 get() get an entry without an error for a wrong key |
671 len() number of entries in a Dictionary | 672 len() number of entries in a Dictionary |
672 has_key() check whether a key appears in a Dictionary | 673 has_key() check whether a key appears in a Dictionary |