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)

1  
static int gSearchNeqIdx(O predicate) {
2  
  ret gSearchNeqIdx(predicate, 1); // no sense to start from 0
3  
}
4  
5  
static int gSearchNeqIdx(final O predicate, int startIdx) {
6  
  ret gSearchIdx(func(S s) {
7  
    neq(s, gI()) && isTrue(callF(predicate, s))
8  
  }, startIdx);
9  
}

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