gw.lang.enhancements.CoreArrayOfDoublesEnhancement.gsx Maven / Gradle / Ivy
package gw.lang.enhancements
uses java.lang.Double
/*
* Copyright 2014 Guidewire Software, Inc.
*/
enhancement CoreArrayOfDoublesEnhancement : Double[] {
function sum() : Double {
var sum = 0.0
for (elt in this) {
sum += elt
}
return sum
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy