Re:Google’s copying of the Java SE API was fair use [pdf]
by jameshart on Monday April 05, 2021 @11:53AM
(#26700579)
The upper bound of the range is intended to be exclusive, while the lower bound is inclusive - basically, the same s array indexing convention. It allows the case where fromIndex == toIndex to represent the empty range (note that this check does permit fromIndex to equal toIndex, but never to exceed it), and the number of entries in a given range is always defined by toIndex - fromIndex.
[ Parent
| on HN ]
There are no comments on this comment yet.