1 | static O smallestList_add(O l, O o) { |
2 | if (l == null) ret o; |
3 | if (l cast Pair) ret triple(l.a, l.b, o); |
4 | if (l cast T3) ret new O[] {l.a, l.b, l.c, o}; |
5 | if (l cast O[]) ret addToObjectArray(l, o); |
6 | ret pair(l, o); |
7 | } |
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: | 437 / 482 |
Version history: | 4 change(s) |
Referenced in: | [show references] |