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

8
LINES

< > BotCompany Repo | #1013159 // smartIndexOfIC - returns l(s) if not found

JavaX fragment (include)

static int smartIndexOfIC(L<S> l, S sub) {
  ret smartIndexOfIC(l, sub, 0);
}

static int smartIndexOfIC(L<S> l, S sub, int start) {
  int i = indexOfIC(l, sub, start);
  ret i < 0 ? l(l) : i;
}

Author comment

Began life as a copy of #1002497

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: #1013159
Snippet name: smartIndexOfIC - returns l(s) if not found
Eternal ID of this version: #1013159/2
Text MD5: b3bf0f3895404615f61790b7eed5a851
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-04-12 18:06:05
Source code size: 201 bytes / 8 lines
Pitched / IR pitched: No / No
Views / Downloads: 333 / 358
Version history: 1 change(s)
Referenced in: [show references]