1 | static int smartIndexOfStartsWith(L<S> l, S s) {
|
2 | ret smartIndexOfStartsWith(l, s, 0); |
3 | } |
4 | |
5 | static int smartIndexOfStartsWith(L<S> l, S s, int i) {
|
6 | int idx = indexOfStartsWith(l, s); |
7 | ret idx < 0 ? l(l) : idx; |
8 | } |
Began life as a copy of #1003993
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: | #1007925 |
| Snippet name: | smartIndexOfStartsWith |
| Eternal ID of this version: | #1007925/3 |
| Text MD5: | 7275b84b00462e107fdfe4f4773afa28 |
| Author: | stefan |
| Category: | javax |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2017-04-17 16:42:57 |
| Source code size: | 220 bytes / 8 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 798 / 792 |
| Version history: | 2 change(s) |
| Referenced in: | [show references] |