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

11
LINES

< > BotCompany Repo | #1029163 // charIterator

JavaX fragment (include) [tags: use-pretranspiled]

Libraryless. Click here for Pure Java version (2648L/16K).

1  
static ItIt<Char> charIterator(S s, int from default 0) {
2  
  ret countIterator_exclusive(from, l(s), i -> s.charAt(i));
3  
}
4  
5  
static ItIt<Char> charIterator(S s, int from, int n) {
6  
  ret countIterator_exclusive(from, min(l(s), from+n), i -> s.charAt(i));
7  
}
8  
9  
static ItIt<Char> charIterator(char[] s, int from, int n) {
10  
  ret countIterator_exclusive(from, min(l(s), from+n), i -> s[i]);
11  
}

download  show line numbers  debug dex  old transpilations   

Travelled to 7 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv

No comments. add comment

Snippet ID: #1029163
Snippet name: charIterator
Eternal ID of this version: #1029163/4
Text MD5: c7bf18495f2252436767bc326920ccdf
Transpilation MD5: 375d3686e7cb8654fdb135c648033bae
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-07-24 01:45:06
Source code size: 392 bytes / 11 lines
Pitched / IR pitched: No / No
Views / Downloads: 236 / 322
Version history: 3 change(s)
Referenced in: [show references]