Libraryless. Click here for Pure Java version (2704L/16K).
static LS charactersAsStrings(S s) { if (s == null) null; ret new RandomAccessAbstractList<S>() { final int l = l(s); public int size() { ret l; } public S get(int i) { ret substring(s, i, i+1); } }; }
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: | 385 / 511 |
| Referenced in: | [show references] |