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

7
LINES

< > BotCompany Repo | #1011512 - smallestList_add

JavaX fragment (include)

static O smallestList_add(O l, O o) {
  if (l == null) ret o;
  if (l cast Pair) ret triple(l.a, l.b, o);
  if (l cast T3) ret new O[] {l.a, l.b, l.c, o};
  if (l cast O[]) ret addToObjectArray(l, o);
  ret pair(l, o);
}

Author comment

Began life as a copy of #1011504

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: #1011512
Snippet name: smallestList_add
Eternal ID of this version: #1011512/5
Text MD5: ae7b704d5fb2fd42337bb6af15d7874b
Author: stefan
Category: javax / collections
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-07-26 23:59:19
Source code size: 226 bytes / 7 lines
Pitched / IR pitched: No / No
Views / Downloads: 255 / 293
Version history: 4 change(s)
Referenced in: [show references]