static O smallestList_fromList(L e) { int n = l(e); smallestList_checkElements(e); switch (n) { case 0: ret null; case 1: ret e.get(0); case 2: ret pair(e.get(0), e.get(1)); case 3: ret triple(e.get(0), e.get(1), e.get(2)); default: ret toObjectArray(e); } }
Began life as a copy of #1011504
download show line numbers debug dex old transpilations
Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1012283 |
Snippet name: | smallestList_fromList |
Eternal ID of this version: | #1012283/1 |
Text MD5: | 5f8cc075b93f7a53fdb4b34a1abd8c84 |
Author: | stefan |
Category: | javax / collections |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2017-11-27 10:52:12 |
Source code size: | 296 bytes / 11 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 318 / 379 |
Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) |