Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

4
LINES

< > BotCompany Repo | #1036569 // binarySearch_tipToTheLeft - needed?

JavaX fragment (include) [tags: use-pretranspiled]

Transpiled version (34L) is out of date.

static <A extends Comparable<? super A>> int binarySearch_tipToTheLeft(L<A> l, A a) {
  int i = Collections.binarySearch(l, a);
  ret i < 0 ? -i-2 : i;
}

Author comment

Began life as a copy of #1030116

download  show line numbers  debug dex  old transpilations   

Travelled to 2 computer(s): mqqgnosmbjvj, wnsclhtenguj

No comments. add comment

Snippet ID: #1036569
Snippet name: binarySearch_tipToTheLeft - needed?
Eternal ID of this version: #1036569/2
Text MD5: 54aa11a19f80711b593c1337c9ecef8c
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2023-03-13 19:46:58
Source code size: 156 bytes / 4 lines
Pitched / IR pitched: No / No
Views / Downloads: 146 / 207
Version history: 1 change(s)
Referenced in: #761 - New #629 - Standard functions list (LIVE) - continued on #1006654