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

10
LINES

< > BotCompany Repo | #1007926 // indexOfNotStartingWith

JavaX fragment (include)

static int indexOfNotStartingWith(L<S> l, S s) {
  ret indexOfNotStartingWith(l, s, 0);
}

static int indexOfNotStartingWith(L<S> l, S s, int i) {
  for (; i < l(l); i++)
    if (!startsWith(l.get(i), s))
      ret i;
  ret -1;
}

Author comment

Began life as a copy of #1003993

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: #1007926
Snippet name: indexOfNotStartingWith
Eternal ID of this version: #1007926/1
Text MD5: 65d8fe10ee75b1caa169f80b6e062b1b
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-04-17 16:46:35
Source code size: 238 bytes / 10 lines
Pitched / IR pitched: No / No
Views / Downloads: 514 / 551
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)
#1013850 - lastIndexOfStartingWith