diffOrNull

inline fun <T> DataRow<T>.diffOrNull(expression: RowExpression<T, Double>): Double?
inline fun <T> DataRow<T>.diffOrNull(expression: RowExpression<T, Int>): Int?
inline fun <T> DataRow<T>.diffOrNull(expression: RowExpression<T, Long>): Long?
inline fun <T> DataRow<T>.diffOrNull(expression: RowExpression<T, Float>): Float?

Calculates the difference between the results of a row expression computed on the current and previous DataRow.

For more information: See Row Functions on the documentation website.

Return

null for the first row; difference between expression computed for current and previous row for the following rows