echo repeat(['a'], 3) output: ['a', 'a', 'a']echo repeat(('a', 'b'), 2), output ('a', 'b', 'a', 'b')`echo repeat(('a'), 3) output: aaa, Expect: ('a', 'a', 'a')respond correctly.
9.2.0043
MS-Windows
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()
It's not a bug. See :h E1526.
An item can be any expression. If there is only one item in the tuple, then
the item must be followed by a comma.
:echo repeat(('a',), 3) ('a', 'a', 'a')
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()
Thanks
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()