static int indexOfSearchingFromMiddleIC(L<S> l, S s) { int len = l(l), middle = len/2, count = len-middle; for n to count: { int i = middle+n; if (i < len && eqic(l.get(i), s)) ret i; i = middle-n-1; if (i >= 0 && eqic(l.get(i), s)) ret i; } ret -1; }
download show line numbers debug dex old transpilations
Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1013108 |
Snippet name: | indexOfSearchingFromMiddleIC |
Eternal ID of this version: | #1013108/6 |
Text MD5: | d54baf9fba5283428346f5f274e2dc3a |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2017-12-25 21:53:53 |
Source code size: | 284 bytes / 10 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 375 / 413 |
Version history: | 5 change(s) |
Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) #1013112 - tok_splitAtAndFromMiddle |