Libraryless. Click here for Pure Java version (2527L/16K).
static <A> L<A> padList(L<A> l, int w, A a default null) { if (l(l) >= w) ret l; L<A> x = cloneList(l); while (l(x) < w) x.add(a); ret x; }
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: | #1001988 |
Snippet name: | padList |
Eternal ID of this version: | #1001988/2 |
Text MD5: | fd4f017c77d9edea47468669f51ae326 |
Transpilation MD5: | a9017da406bce1a4237329161b81cd7c |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2020-12-05 17:31:35 |
Source code size: | 152 bytes / 6 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 648 / 1135 |
Version history: | 1 change(s) |
Referenced in: | [show references] |