You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by GitBox <gi...@apache.org> on 2021/11/19 17:32:28 UTC
[GitHub] [commons-lang] ali-ghanbari commented on pull request #804: floor and ceiling for Sorted Arrays
ali-ghanbari commented on pull request #804:
URL: https://github.com/apache/commons-lang/pull/804#issuecomment-974268711
> [...] Since floor and ceiling are mathematical concepts, I would think it belongs in Commons Math [...]
Thanks, @garydgregory , for reviewing my PR.
While waiting for @kinow and @chtompki , I just wanted to add that `floor` and `ceiling` are _generic_ array (binary) search methods, and in my opinion they should be come with normal binary search.
Yes, they might be seen as multivariate functions, if we had variants only for searching numerical arrays, but `floor` and `ceiling` can be used for searching any array as long as a comparator is defined for their elements.
Many thanks
--
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: issues-unsubscribe@commons.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org