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

In Swift, what is the type of `adder` and what does the last line print?

func makeAdder(_ amount: Int) -> (Int) -> Int { return { value in value + amount } } let adder = makeAdder(10) print(adder(5))