in this particular case, the initial value should ...
# getting-started
p
in this particular case, the initial value should probably not be
null
. Using
Int.MAX_VALUE
would make it much cleaner. It would of course result in different behaviour for empty lists