1 | static int indexOfNotPredC(L l, O pred) { |
2 | for (int i = 1; i < l(l); i += 2) |
3 | if (!checkCondition(pred, l.get(i))) |
4 | ret i; |
5 | ret -1; |
6 | } |
Began life as a copy of #1011205
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: | #1011206 |
Snippet name: | indexOfNotPredC - index of first odd element in list that doesn't match a predicate |
Eternal ID of this version: | #1011206/1 |
Text MD5: | b7920abbd65f535a192029a5e75d3437 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2017-10-17 00:31:44 |
Source code size: | 148 bytes / 6 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 443 / 466 |
Referenced in: | [show references] |