sum(ofProperty:)
public func sum<T: AddableType>(ofProperty property: String) -> T
Returns the sum of the values of a given property over all the linking objects.
Warning
Only a property whose type conforms to the AddableType
protocol can be specified.
-
Declaration
Swift
public func sum<T: AddableType>(ofProperty property: String) -> T