Created
February 28, 2019 03:41
-
-
Save austenstrine/2907b8c520a485fbc1d99681e00222bb 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
import Foundation | |
infix operator =!& : AssignmentPrecedence | |
func =!&<T:NSCopying>(lhs: inout T, rhs: T) | |
{ | |
lhs = rhs.copy(with: nil) as! T | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment