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

8
LINES

< > BotCompany Repo | #1013390 // allIndexes

JavaX fragment (include)

static L<Int> allIndexes(S s, char c) {
  new L<Int> l;
  int n = l(s);
  if (s != null) for i to n:
    if (s.charAt(i) == c)
      l.add(i);
  ret l;
}

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: #1013390
Snippet name: allIndexes
Eternal ID of this version: #1013390/1
Text MD5: 13a374750975753d1368f75d0fb12d6e
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-01-04 05:07:39
Source code size: 160 bytes / 8 lines
Pitched / IR pitched: No / No
Views / Downloads: 473 / 501
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)