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); }
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: | 436 / 480 |
Version history: | 4 change(s) |
Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) #1011677 - smallestList_set #1012284 - smallestList_remove |