1 | static L<Int> allIndexes(S s, char c) { |
2 | new L<Int> l; |
3 | int n = l(s); |
4 | if (s != null) for i to n: |
5 | if (s.charAt(i) == c) |
6 | l.add(i); |
7 | ret l; |
8 | } |
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: | 474 / 502 |
Referenced in: | [show references] |