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

7
LINES

< > BotCompany Repo | #1012282 // smallestList_toMutableList

JavaX fragment (include)

static L smallestList_toMutableList(O l) {
  if (l == null) ret ll();
  if (l cast Pair) ret ll(l.a, l.b);
  if (l cast T3) ret ll(l.a, l.b, l.c);
  if (l ast O[]) ret new L(Arrays.asList(l));
  ret ll(l);
}

Author comment

Began life as a copy of #1011524

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1012282
Snippet name: smallestList_toMutableList
Eternal ID of this version: #1012282/3
Text MD5: 4ce596119679cb0ffed1887113966fde
Author: stefan
Category: javax / collections
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-07-27 00:00:36
Source code size: 213 bytes / 7 lines
Pitched / IR pitched: No / No
Views / Downloads: 346 / 400
Version history: 2 change(s)
Referenced in: [show references]