Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

6
LINES

< > BotCompany Repo | #1011206 // indexOfNotPredC - index of first odd element in list that doesn't match a predicate

JavaX fragment (include)

static int indexOfNotPredC(L l, O pred) {
  for (int i = 1; i < l(l); i += 2)
    if (!checkCondition(pred, l.get(i)))
      ret i;
  ret -1;
}

Author comment

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: 349 / 370
Referenced in: [show references]