dongwq commented on PR #2210:
URL: https://github.com/apache/groovy/pull/2210#issuecomment-2851503770

   > Also, was there anything in particular you used from `AbstractList`. 
Wondering why not to use the more general `List` interface?
   
   cause partition_point is O(logn),  suppose that element.get(i) is O(1).  so 
here we need a "random access" data store (such as an array).  
   
   the java doc says for AbstractList:
    * This class provides a skeletal implementation of the {@link List}
    * interface to minimize the effort required to implement this interface
    * backed by a "random access" data store (such as an array)
    
   though there no actual limit in java collection framework.
    


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscr...@groovy.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to