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

9
LINES

< > BotCompany Repo | #1003879 // gSearchNeqIdx - return line index

JavaX fragment (include)

static int gSearchNeqIdx(O predicate) {
  ret gSearchNeqIdx(predicate, 1); // no sense to start from 0
}

static int gSearchNeqIdx(final O predicate, int startIdx) {
  ret gSearchIdx(func(S s) {
    neq(s, gI()) && isTrue(callF(predicate, s))
  }, startIdx);
}

Author comment

Began life as a copy of #1003832

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: #1003879
Snippet name: gSearchNeqIdx - return line index
Eternal ID of this version: #1003879/1
Text MD5: e10ed2a1445450a0d86ccc8855cc3181
Author: stefan
Category: javax / talking robots
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2016-07-29 16:55:17
Source code size: 268 bytes / 9 lines
Pitched / IR pitched: No / No
Views / Downloads: 454 / 485
Referenced in: [show references]