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

10
LINES

< > BotCompany Repo | #1020453 // indexOfStartsWithIC

JavaX fragment (include)

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

static int indexOfStartsWithIC(L<S> l, S s, int i) {
  for (; i < l(l); i++)
    if (swic(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 8 computer(s): bhatertpkbcr, cfunsshuasjs, gwrvuhgaqvyk, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1020453
Snippet name: indexOfStartsWithIC
Eternal ID of this version: #1020453/1
Text MD5: 999608d360708e31da9c324766f1a4f7
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-12-22 18:38:53
Source code size: 222 bytes / 10 lines
Pitched / IR pitched: No / No
Views / Downloads: 316 / 334
Referenced in: [show references]