sumOrThrow

fun <T : Any> Iterable<Amount<T>>.sumOrThrow(): <Error class: unknown class>

Sums the amounts yielded by the given iterable, throwing an IllegalArgumentException if any of the token types are mismatched.