Libraryless. Click here for Pure Java version (2648L/16K).
static ItIt<Char> charIterator(S s, int from default 0) { ret countIterator_exclusive(from, l(s), i -> s.charAt(i)); } static ItIt<Char> charIterator(S s, int from, int n) { ret countIterator_exclusive(from, min(l(s), from+n), i -> s.charAt(i)); } static ItIt<Char> charIterator(char[] s, int from, int n) { ret countIterator_exclusive(from, min(l(s), from+n), i -> s[i]); }
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: | 234 / 319 |
Version history: | 3 change(s) |
Referenced in: | [show references] |