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

7
LINES

< > BotCompany Repo | #1022706 // listGetOrCreate_List

JavaX fragment (include)

static <A> L<A> listGetOrCreate_List(LL<A> l, int i) {
  if (l == null) null;
  L<A> a = get(l, i);
  if (a == null)
    listSet(l, i, a = new L);
  ret a;
}

Author comment

Began life as a copy of #1022705

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: #1022706
Snippet name: listGetOrCreate_List
Eternal ID of this version: #1022706/1
Text MD5: 92501f5565952b9103b3ba6a2e00cde6
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-03-31 21:52:40
Source code size: 163 bytes / 7 lines
Pitched / IR pitched: No / No
Views / Downloads: 230 / 269
Referenced in: [show references]