Last active
November 30, 2018 03:40
-
-
Save piyush23dez/17d04d58c8b31cf104d0de159ab4af93 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
class Foo { | |
var value: Int = 0 | |
func doIt() { | |
for index in 0..<10 { | |
value = index | |
} | |
print(value) | |
} | |
} | |
} | |
func simpleOperation() { | |
let foo = Foo() | |
foo.doIt() | |
} | |
simpleOperation() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment