Function Varargs April 11, 2023 Content # :function Varg2(foo, ...) : echom a:foo : echom a:0 : echom a:1 : echo a:000 :endfunction :call Varg2("a", "b", "c") a:0 存放可变参数list的长度,这里是2。 a:1 是可变参数中的第1个。这里是"b"。 a:000 是可变参数list. From # Links # :help function-argument