comparison src/evalfunc.c @ 20766:821925509d8c v8.2.0935

patch 8.2.0935: flattening a list with existing code is slow Commit: https://github.com/vim/vim/commit/077a1e670ad69ef4cefc22103ca6635bd269e764 Author: Bram Moolenaar <Bram@vim.org> Date: Mon Jun 8 20:50:43 2020 +0200 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 https://github.com/vim/vim/issues/3676)
author Bram Moolenaar <Bram@vim.org>
date Mon, 08 Jun 2020 21:00:04 +0200
parents d9a2e5dcfd9f
children 90b96fa35e4b
comparison
equal deleted inserted replaced
20765:ca776ec54a6c 20766:821925509d8c
539 {"filereadable", 1, 1, FEARG_1, ret_number, f_filereadable}, 539 {"filereadable", 1, 1, FEARG_1, ret_number, f_filereadable},
540 {"filewritable", 1, 1, FEARG_1, ret_number, f_filewritable}, 540 {"filewritable", 1, 1, FEARG_1, ret_number, f_filewritable},
541 {"filter", 2, 2, FEARG_1, ret_any, f_filter}, 541 {"filter", 2, 2, FEARG_1, ret_any, f_filter},
542 {"finddir", 1, 3, FEARG_1, ret_string, f_finddir}, 542 {"finddir", 1, 3, FEARG_1, ret_string, f_finddir},
543 {"findfile", 1, 3, FEARG_1, ret_string, f_findfile}, 543 {"findfile", 1, 3, FEARG_1, ret_string, f_findfile},
544 {"flatten", 1, 2, FEARG_1, ret_list_any, f_flatten},
544 {"float2nr", 1, 1, FEARG_1, ret_number, FLOAT_FUNC(f_float2nr)}, 545 {"float2nr", 1, 1, FEARG_1, ret_number, FLOAT_FUNC(f_float2nr)},
545 {"floor", 1, 1, FEARG_1, ret_float, FLOAT_FUNC(f_floor)}, 546 {"floor", 1, 1, FEARG_1, ret_float, FLOAT_FUNC(f_floor)},
546 {"fmod", 2, 2, FEARG_1, ret_float, FLOAT_FUNC(f_fmod)}, 547 {"fmod", 2, 2, FEARG_1, ret_float, FLOAT_FUNC(f_fmod)},
547 {"fnameescape", 1, 1, FEARG_1, ret_string, f_fnameescape}, 548 {"fnameescape", 1, 1, FEARG_1, ret_string, f_fnameescape},
548 {"fnamemodify", 2, 2, FEARG_1, ret_string, f_fnamemodify}, 549 {"fnamemodify", 2, 2, FEARG_1, ret_string, f_fnamemodify},