diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2019-09-06 18:21:12 -0700 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2019-09-06 18:30:35 -0700 |
commit | c044ea09094ebd50c48f4869473e31cb67fbedb0 (patch) | |
tree | 8aff4a1092307edfacf4c25c7d4bdf978f245165 /runtime/doc/eval.txt | |
parent | 158b78062e9daa65203b4591dae733dd6c11ad2c (diff) | |
download | rneovim-c044ea09094ebd50c48f4869473e31cb67fbedb0.tar.gz rneovim-c044ea09094ebd50c48f4869473e31cb67fbedb0.tar.bz2 rneovim-c044ea09094ebd50c48f4869473e31cb67fbedb0.zip |
vim-patch:088e8e344352
Update runtime files.
https://github.com/vim/vim/commit/088e8e3443520dec91a384081e66445a104810bb
Diffstat (limited to 'runtime/doc/eval.txt')
-rw-r--r-- | runtime/doc/eval.txt | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/runtime/doc/eval.txt b/runtime/doc/eval.txt index 93bc7f868d..5032dc16ee 100644 --- a/runtime/doc/eval.txt +++ b/runtime/doc/eval.txt @@ -3977,12 +3977,12 @@ function({name} [, {arglist}] [, {dict}]) the Funcref and will be used when the Funcref is called. The arguments are passed to the function in front of other - arguments. Example: > + arguments, but after any argument from |method|. Example: > func Callback(arg1, arg2, name) ... - let Func = function('Callback', ['one', 'two']) + let Partial = function('Callback', ['one', 'two']) ... - call Func('name') + call Partial('name') < Invokes the function as with: > call Callback('one', 'two', 'name') @@ -5650,6 +5650,8 @@ map({expr1}, {expr2}) *map()* call map(myDict, {key, val -> key . '-' . val}) < If you do not use "val" you can leave it out: > call map(myDict, {key -> 'item: ' . key}) +< If you do not use "key" you can use a short name: > + call map(myDict, {_, val -> 'item: ' . val}) < The operation is done in-place. If you want a |List| or |Dictionary| to remain unmodified make a copy first: > |