patch 8.2.0935: flattening a list with existing code is slow

Problem:    Flattening a list with existing code is slow.
Solution:   Add flatten(). (Mopp, closes #3676)
This commit is contained in:
Bram Moolenaar
2020-06-08 20:50:43 +02:00
parent ec98e93a82
commit 077a1e670a
8 changed files with 198 additions and 1 deletions

View File

@ -650,6 +650,7 @@ List manipulation: *list-functions*
min() minimum value in a List
count() count number of times a value appears in a List
repeat() repeat a List multiple times
flatten() flatten a List
Dictionary manipulation: *dict-functions*
get() get an entry without an error for a wrong key