Skip to content

Instantly share code, notes, and snippets.

@SwiftSandbox
Last active August 29, 2015 14:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save SwiftSandbox/da6f27463fa0125d5a42 to your computer and use it in GitHub Desktop.
Save SwiftSandbox/da6f27463fa0125d5a42 to your computer and use it in GitHub Desktop.
// 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