gw.lang.enhancements.CoreArrayOfNumbersEnhancement.gsx Maven / Gradle / Ivy
package gw.lang.enhancements
uses java.math.BigDecimal
/*
* Copyright 2014 Guidewire Software, Inc.
*/
enhancement CoreArrayOfNumbersEnhancement : N[]
{
reified function average() : BigDecimal {
return this.toList().average( \ i -> i )
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy