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

4
LINES

< > BotCompany Repo | #1009448 // truncateList - synonym of trimList

JavaX fragment (include)

1  
static void truncateList(L l, int n) {
2  
  if (l(l) <= n) ret;
3  
  removeSubList(l, n, l(l));
4  
}

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: #1009448
Snippet name: truncateList - synonym of trimList
Eternal ID of this version: #1009448/3
Text MD5: 46949d597ac56ba0db6994fb0623ddfb
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2021-06-21 17:42:03
Source code size: 94 bytes / 4 lines
Pitched / IR pitched: No / No
Views / Downloads: 546 / 635
Version history: 2 change(s)
Referenced in: [show references]