Skip to content

Instantly share code, notes, and snippets.

@tamaki-shingo
Created November 5, 2016 11:05
Show Gist options
  • Save tamaki-shingo/da638e064df946867b99b10c916a7bfb to your computer and use it in GitHub Desktop.
Save tamaki-shingo/da638e064df946867b99b10c916a7bfb to your computer and use it in GitHub Desktop.
やっぱ同じかな? 個人的にはVoidだと思うんだけど好みの問題かね? #CodePiece
var action1: () -> Void = {}
var action2: ()->() = {}
let result1 = action1()
let result2 = action2()
print(type(of: result1))
print(type(of: result2))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment