Mercurial > vim
comparison src/proto/list.pro @ 34126:da670b1549b3 v9.1.0027
patch 9.1.0027: Vim is missing a foreach() func
Commit: https://github.com/vim/vim/commit/e79e2077607e8f829ba823308c91104a795736ba
Author: Ernie Rael <errael@raelity.com>
Date: Sat Jan 13 11:47:33 2024 +0100
patch 9.1.0027: Vim is missing a foreach() func
Problem: Vim is missing a foreach() func
Solution: Implement foreach({expr1}, {expr2}) function,
which applies {expr2} for each item in {expr1}
without changing it (Ernie Rael)
closes: #12166
Signed-off-by: Ernie Rael <errael@raelity.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Sat, 13 Jan 2024 12:00:06 +0100 |
parents | b3de17181c19 |
children | 500731fe8161 |
comparison
equal
deleted
inserted
replaced
34125:93171f4925c5 | 34126:da670b1549b3 |
---|---|
54 void f_uniq(typval_T *argvars, typval_T *rettv); | 54 void f_uniq(typval_T *argvars, typval_T *rettv); |
55 int filter_map_one(typval_T *tv, typval_T *expr, filtermap_T filtermap, funccall_T *fc, typval_T *newtv, int *remp); | 55 int filter_map_one(typval_T *tv, typval_T *expr, filtermap_T filtermap, funccall_T *fc, typval_T *newtv, int *remp); |
56 void f_filter(typval_T *argvars, typval_T *rettv); | 56 void f_filter(typval_T *argvars, typval_T *rettv); |
57 void f_map(typval_T *argvars, typval_T *rettv); | 57 void f_map(typval_T *argvars, typval_T *rettv); |
58 void f_mapnew(typval_T *argvars, typval_T *rettv); | 58 void f_mapnew(typval_T *argvars, typval_T *rettv); |
59 void f_foreach(typval_T *argvars, typval_T *rettv); | |
59 void f_add(typval_T *argvars, typval_T *rettv); | 60 void f_add(typval_T *argvars, typval_T *rettv); |
60 void f_count(typval_T *argvars, typval_T *rettv); | 61 void f_count(typval_T *argvars, typval_T *rettv); |
61 void f_extend(typval_T *argvars, typval_T *rettv); | 62 void f_extend(typval_T *argvars, typval_T *rettv); |
62 void f_extendnew(typval_T *argvars, typval_T *rettv); | 63 void f_extendnew(typval_T *argvars, typval_T *rettv); |
63 void f_insert(typval_T *argvars, typval_T *rettv); | 64 void f_insert(typval_T *argvars, typval_T *rettv); |