Libraryless. Click here for Pure Java version (3816L/22K).
1 | sS charRange(char first, char last) { |
2 | new StringBuilder buf; |
3 | while (first <= last) buf.append(first++); |
4 | ret str(buf); |
5 | } |
6 | |
7 | sS charRange(int first, int last) { |
8 | ret charRange((char) first, (char) last); |
9 | } |
10 | |
11 | static L<Char> charRange() { |
12 | ret listFromFunction((IF1<Int, Char>) i -> intToChar(i), 0x10000); |
13 | } |
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: | #1006970 |
Snippet name: | charRange - string of all Unicode characters in a range |
Eternal ID of this version: | #1006970/10 |
Text MD5: | 804683d37eac568e3f2296135e243bbb |
Transpilation MD5: | 36b3066545aede770cf394666677eb68 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2021-10-16 07:28:57 |
Source code size: | 321 bytes / 13 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 412 / 531 |
Version history: | 9 change(s) |
Referenced in: | [show references] |