Skip to main content
Journey Uncommon Logo
JourneyUncommon
mediumRubykeyword arguments and double splatSingle-choice MCQ

In Ruby 3.x, what does passing an empty splatted hash do here?

def m(*args, **kw) [args, kw] end p m(1, **{})