Libraryless. Click here for Pure Java version (2704L/16K).
1 | static LS charactersAsStrings(S s) { |
2 | if (s == null) null; |
3 | ret new RandomAccessAbstractList<S>() { |
4 | final int l = l(s); |
5 | public int size() { ret l; } |
6 | public S get(int i) { ret substring(s, i, i+1); } |
7 | }; |
8 | } |
Began life as a copy of #1008767
download show line numbers debug dex old transpilations
Travelled to 4 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, vouqrxazstgt
No comments. add comment
Snippet ID: | #1030586 |
Snippet name: | charactersAsStrings |
Eternal ID of this version: | #1030586/1 |
Text MD5: | d4ff9eed476c4361a5e743e91cf29946 |
Transpilation MD5: | ce16d682f555646e3a6af9a61d2ea381 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2021-01-13 21:27:21 |
Source code size: | 226 bytes / 8 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 162 / 246 |
Referenced in: | [show references] |