On Monday, 12 September 2022 at 11:53:34 UTC, Sergey wrote: > In case zero will be the last element - the search should make > an extra comparisons “if currentElement = T.minimum” which > double operations.. > Isn’t it? Branch prediction makes this extra check basically free.