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

9
LINES

< > BotCompany Repo | #1003977 // gSearchNeqNoSystemIdx - return line index

JavaX fragment (include)

static int gSearchNeqNoSystemIdx(L<S> log, O predicate) {
  ret gSearchNeqNoSystemIdx(log, predicate, 1); // no sense to start from 0
}

static int gSearchNeqNoSystemIdx(final L<S> log, final O predicate, int startIdx) {
  ret gSearchIdx(log, func(S s) {
    neq(s, gI(log)) && !isSystemLine(s) && isTrue(callF(predicate, s))
  }, startIdx);
}

Author comment

Began life as a copy of #1003879

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: #1003977
Snippet name: gSearchNeqNoSystemIdx - return line index
Eternal ID of this version: #1003977/1
Text MD5: 180f6f40806105b9d222370809773b09
Author: stefan
Category: javax / talking robots
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2016-08-10 18:42:56
Source code size: 351 bytes / 9 lines
Pitched / IR pitched: No / No
Views / Downloads: 404 / 440
Referenced in: [show references]