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