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)

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

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: 470 / 556
Version history: 2 change(s)
Referenced in: [show references]