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)

static L<S> rtrimAll(L<S> l) {
  new L<S> l2;
  for (S s : l)
    l2.add(rtrim(s));
  ret l2;
}

static S rtrimAll(S s) {
  ret lines(rtrimAll(lines(s)));
}

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