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

10
LINES

< > BotCompany Repo | #1003055 // trimAll - trim all strings in a list

JavaX fragment (include) [tags: use-pretranspiled]

Libraryless. Click here for Pure Java version (4576L/25K).

static LS trimAll(S... l) {
  ret trimAll(asList(l));
}

static LS trimAll(Cl<S> l) {
  new LS l2;
  if (l != null) for (S s : l)
    l2.add(trim(s));
  ret l2;
}

download  show line numbers  debug dex  old transpilations   

Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, qsqiayxyrbia, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1003055
Snippet name: trimAll - trim all strings in a list
Eternal ID of this version: #1003055/6
Text MD5: acad276c665b56372cf6ff4cf14c7f7d
Transpilation MD5: 30648a7bebdad04768a26680e1f7b427
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2022-01-15 20:39:42
Source code size: 171 bytes / 10 lines
Pitched / IR pitched: No / No
Views / Downloads: 676 / 673
Version history: 5 change(s)
Referenced in: #1005768 - rtrimAll - right trim all strings in a list; or all lines in a string
#1006654 - Standard functions list 2 (LIVE, continuation of #761)
#1011929 - shortenAll
#3000382 - Answer for ferdie (>> t = 1, f = 0)