static int indexOfElementThatContains(L<S> l, S s) { for i over l: if (contains(l.get(i), s)) ret i; ret -1; } static int indexOfElementThatContains(L<S> l, int i, S s) { for (; i < l(l); i++) if (contains(l.get(i), s)) ret i; ret -1; }
download show line numbers debug dex old transpilations
Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, ddnzoavkxhuk, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1004674 |
Snippet name: | indexOfElementThatContains |
Eternal ID of this version: | #1004674/2 |
Text MD5: | d4f60e3f3cd4d58b4ce953acb1f1bc51 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2017-06-26 17:39:12 |
Source code size: | 277 bytes / 13 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 492 / 518 |
Version history: | 1 change(s) |
Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) |