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

8
LINES

< > BotCompany Repo | #1008767 // stringAsCharacterList

JavaX fragment (include)

1  
static L<Char> stringAsCharacterList(fS s) {
2  
  if (s == null) null;
3  
  ret new RandomAccessAbstractList<Char>() {
4  
    final int l = l(s);
5  
    public int size() { ret l; }
6  
    public Char get(int i) { ret s.charAt(i); }
7  
  };
8  
}

download  show line numbers  debug dex  old transpilations   

Travelled to 15 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, ekrmjmnbrukm, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt, whxojlpjdney

No comments. add comment

Snippet ID: #1008767
Snippet name: stringAsCharacterList
Eternal ID of this version: #1008767/2
Text MD5: 76faca31ac4f6341c0382b1ad27c7ac7
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-10-30 02:25:02
Source code size: 231 bytes / 8 lines
Pitched / IR pitched: No / No
Views / Downloads: 518 / 649
Version history: 1 change(s)
Referenced in: [show references]