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

6
LINES

< > BotCompany Repo | #1017500 // textOut_or_orAll - join strings as "a, b or c or all of these"

JavaX fragment (include)

static S textOut_or_orAll(L<S> l) {
  S s = textOut_or(l);
  if (l(l) > 2) ret s + " or all of these";
  if (l(l) == 2) ret s + " or both";
  ret s;
}

Author comment

Began life as a copy of #1017496

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1017500
Snippet name: textOut_or_orAll - join strings as "a, b or c or all of these"
Eternal ID of this version: #1017500/3
Text MD5: eb27f80758b82c7ae41cd50313305a06
Author: stefan
Category: javax / a.i.
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-07-24 00:32:15
Source code size: 155 bytes / 6 lines
Pitched / IR pitched: No / No
Views / Downloads: 226 / 256
Version history: 2 change(s)
Referenced in: [show references]