AutoClosure
Jul 24, 2017 · 1 min read

when closure as a parameter for a function, in a traditional way, we must using { } to an closure we want call, but another way by using @autoclosure modifiy a closure parameter
and just pass a closure as parameter into function, without using { } like non-closure parameter.