static int indexOfStartsWith(L<S> l, S s) { ret indexOfStartsWith(l, s, 0); } static int indexOfStartsWith(L<S> l, S s, int i) { for (; i < l(l); i++) if (startsWith(l.get(i), s)) ret i; ret -1; }
Began life as a copy of #1003980
download show line numbers debug dex old transpilations
Travelled to 15 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, ddnzoavkxhuk, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv
No comments. add comment
| Snippet ID: | #1003993 |
| Snippet name: | indexOfStartsWith |
| Eternal ID of this version: | #1003993/1 |
| Text MD5: | f42c2cb8b6f54ff5eca3c1a8c902b753 |
| Author: | stefan |
| Category: | javax |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2016-08-01 22:38:53 |
| Source code size: | 222 bytes / 10 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 861 / 865 |
| Referenced in: | #1003994 - indexOfEndsWith #1006654 - Standard functions list 2 (LIVE, continuation of #761) #1007925 - smartIndexOfStartsWith #1007926 - indexOfNotStartingWith #1020453 - indexOfStartsWithIC |