Last active
August 29, 2015 14:27
-
-
Save SwiftSandbox/da6f27463fa0125d5a42 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Thanks André Schneider https://twitter.com/_schneiderandre | |
import UIKit | |
// Closure stored in Constant | |
let helloWorldClosure = { print("Hello World - 1") } | |
helloWorldClosure() | |
// Function stored in Constant | |
func helloWorldFunction() { | |
print("Hello World - 2") | |
} | |
let helloWorld = helloWorldFunction | |
helloWorld() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment