Using @discardableResult in Swift

Learn how to safely ignore the result of a function or method in Swift using the @discardableResult attribute.

Tags: swift , attributes