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

8
LINES

< > BotCompany Repo | #1021257 // codeTokens_lazy

JavaX fragment (include)

1  
static LS codeTokens_lazy(final LS tok) {
2  
  ret new RandomAccessAbstractList<S> {
3  
    final int size = l(tok)/2;
4  
    
5  
    public int size() { ret size; }
6  
    public S get(int i) { ret tok.get(i*2+1); }
7  
  };
8  
}

Author comment

Began life as a copy of #1018394

download  show line numbers  debug dex  old transpilations   

Travelled to 7 computer(s): bhatertpkbcr, cfunsshuasjs, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1021257
Snippet name: codeTokens_lazy
Eternal ID of this version: #1021257/1
Text MD5: f647c4f59394ec98510b15834f4f8514
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-02-06 12:06:33
Source code size: 215 bytes / 8 lines
Pitched / IR pitched: No / No
Views / Downloads: 289 / 327
Referenced in: [show references]