1 | static int indexOfElementThatContains(L<S> l, S s) { |
2 | for i over l: |
3 | if (contains(l.get(i), s)) |
4 | ret i; |
5 | ret -1; |
6 | } |
7 | |
8 | static int indexOfElementThatContains(L<S> l, int i, S s) { |
9 | for (; i < l(l); i++) |
10 | if (contains(l.get(i), s)) |
11 | ret i; |
12 | ret -1; |
13 | } |
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: | 493 / 519 |
Version history: | 1 change(s) |
Referenced in: | [show references] |