Created
April 26, 2017 10:34
-
-
Save ConorBrady/2e5507d2e1dbcf7afb0f6fe62572a205 to your computer and use it in GitHub Desktop.
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 Foo { | |
var bar: String | |
init() { } | |
} | |
// Before | |
let foo = Foo() | |
foo.bar = "bar" | |
// After | |
let foo = Foo() <== { | |
$0.bar = "bar" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment