How to call a function with a keyword argument whose name is stored in a variable

Making a single element collection just to splat it is redundant. It’s fine to go directly with the Pair:

foo(2; Symbol(keyword) => 1)
4 Likes