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