Created
November 4, 2018 00:58
-
-
Save mikebuss/d3e6ce86e4a3e826078776621d3fa6d5 to your computer and use it in GitHub Desktop.
swift-lazy-init.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
lazy var players: [String] = { | |
var temporaryPlayers = [String]() | |
temporaryPlayers.append("John Doe") | |
return temporaryPlayers | |
}() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment