以上来源于: WordNet
Go: Variadic function and too many arguments?
去:可变参数函数和参数太多?
The third article in this series explained Vimscript's variadic function arguments with a small example that generated comment boxes around a specified text.
本系列的 使用脚本编写 Vim 编辑器,第 3 部分:内置列表 用一个在指定文本周围生成评论框的小例子,解释了 Vimscript 的 variadic 函数参数。
Named and variadic parameters can be used in the same function, simply by placing the variadic ellipsis after the list of named parameters.
可以在同一个函数中同时使用命名参数和可变参数,只需要将可变参数的省略号放在命名参数列表之后。
应用推荐