First Class Functions


fun bigDecimalEquals(
    one: BigDecimal, 
    two: BigDecimal) : Boolean { 
  return one.compareTo(two) == 0
}


fun bigDecimalEquals(
    one: BigDecimal, 
    two: BigDecimal) : Boolean = one.compareTo(two) == 0


val bigDecimalEquals: Boolean = one.compareTo(two) == 0
Back Home Next