How to append a closure to another closure?

前端 未结 0 1421
情深已故
情深已故 2020-12-22 04:52

So I have my first closure here:

var instructions: (() -> Void) = {
    print("First")
}

instructions() /// prints "First"


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题