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

10
LINES

< > BotCompany Repo | #1005768 // rtrimAll - right trim all strings in a list; or all lines in a string

JavaX fragment (include)

1  
static L<S> rtrimAll(L<S> l) {
2  
  new L<S> l2;
3  
  for (S s : l)
4  
    l2.add(rtrim(s));
5  
  ret l2;
6  
}
7  
8  
static S rtrimAll(S s) {
9  
  ret lines(rtrimAll(lines(s)));
10  
}

Author comment

Began life as a copy of #1003055

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1005768
Snippet name: rtrimAll - right trim all strings in a list; or all lines in a string
Eternal ID of this version: #1005768/3
Text MD5: 575a436322cf9fc3fe05749f71554839
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-05-26 14:54:20
Source code size: 165 bytes / 10 lines
Pitched / IR pitched: No / No
Views / Downloads: 582 / 615
Version history: 2 change(s)
Referenced in: [show references]