Created
April 24, 2017 02:12
-
-
Save edwardean/9b0e7c9ba0c33ab327c5eada0eacff49 to your computer and use it in GitHub Desktop.
excute code and only once in swift:
This file contains hidden or 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
class Once { | |
static let run: Void = { | |
print(“code execute”) | |
}() | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment