mirror of
https://github.com/vim/vim.git
synced 2025-10-13 06:54:15 -04:00
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:
@@ -541,6 +541,7 @@ static funcentry_T global_functions[] =
|
||||
{"filter", 2, 2, FEARG_1, ret_any, f_filter},
|
||||
{"finddir", 1, 3, FEARG_1, ret_string, f_finddir},
|
||||
{"findfile", 1, 3, FEARG_1, ret_string, f_findfile},
|
||||
{"flatten", 1, 2, FEARG_1, ret_list_any, f_flatten},
|
||||
{"float2nr", 1, 1, FEARG_1, ret_number, FLOAT_FUNC(f_float2nr)},
|
||||
{"floor", 1, 1, FEARG_1, ret_float, FLOAT_FUNC(f_floor)},
|
||||
{"fmod", 2, 2, FEARG_1, ret_float, FLOAT_FUNC(f_fmod)},
|
||||
|
Reference in New Issue
Block a user