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

17
LINES

< > BotCompany Repo | #1001400 // sendToAll

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

Libraryless. Click here for Pure Java version (6517L/43K).

static L<S> sendToAll(S botName, S line, Object... args) {
  new L<S> answers;
  
  line = format3(line, args);
  
  for (DialogIO io : talkToAll_full(botName)) {
    temp io;
    print(": " + dropAfterLastSlash(io.readLine()));
    answers.add(io.askLoudly(line));
  }

  ret answers;
}

static L<S> sendToAll(S line) {
  ret sendToAll("", line);
}

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: #1001400
Snippet name: sendToAll
Eternal ID of this version: #1001400/7
Text MD5: 11b5f418eb39bf4614c6cdfa05a23981
Transpilation MD5: 354702b0a77b658a93f0774df94f387a
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-07-26 23:21:57
Source code size: 365 bytes / 17 lines
Pitched / IR pitched: No / No
Views / Downloads: 737 / 1001
Version history: 6 change(s)
Referenced in: #1001483 - sendToAllVMs
#1002427 - Accellerating 629 (SPIKE)
#1006654 - Standard functions list 2 (LIVE, continuation of #761)
#1019145 - sendToAllOtherVMs
#3000202 - Answer for stefanreich (>> T conversion bot)
#3000238 - Answer for stefanreich (>> t power bot)
#3000382 - Answer for ferdie (>> t = 1, f = 0)