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

What is the correct ordering and behavior of this mixed-parameter method?

def g(a, b = 1, *rest, c:, d: 4, **opts) [a, b, rest, c, d, opts] end g(1, c: 3) # => ?