def
func:min
min(val, acc)
Compare two numbers and return the smaller one. This function may also be used with fold()
to return the smallest number (or null if no values). Note number units are not checked nor considered for this comparison.
Examples:
min(7, 4) >> 4 [7, 2, 4].fold(min) >> 2