Skip to main content
Journey Uncommon Logo
JourneyUncommon
easySwiftclosures and trailing closuresSingle-choice MCQ

Which call uses trailing closure syntax correctly for this function?

func run(times: Int, action: () -> Void) { for _ in 0..<times { action() } }