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

7
LINES

< > BotCompany Repo | #1014833 // vMap - map virtually (on access)

JavaX fragment (include)

static L vMap(fO f, fL l) {
  if (l == null) null;
  ret new RandomAccessAbstractList() {
    public int size() { ret l.size(); }
    public O get(int i) { ret callF(f, l.get(i)); }
  };
}

Author comment

Began life as a copy of #1013969

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: #1014833
Snippet name: vMap - map virtually (on access)
Eternal ID of this version: #1014833/4
Text MD5: c651029aec3bb422d3b794a61b3cbfdf
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-05-04 11:12:44
Source code size: 194 bytes / 7 lines
Pitched / IR pitched: No / No
Views / Downloads: 351 / 380
Version history: 3 change(s)
Referenced in: [show references]